
11 Sep
2010
11 Sep
'10
2:37 p.m.
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