[Phpmyadmin-devel] jQuery question

Marc Delisle marc at infomarc.info
Sat Sep 11 14:37:59 CEST 2010


Hi,
this works on a input element:

var this_name = $(this).attr('name');

so I'm trying to do the same to extract the code inside the onchange
"attribute":

var this_onchange = $(this).attr('onchange');

but Firebug tells me that this_onchange is an event; it does not contain
the code. I need to do subsequent string matching and replacement in
this code.

Thanks,
-- 
Marc Delisle
http://infomarc.info




More information about the Developers mailing list