>> var select = $('[EMAIL PROTECTED] myselect]');
>> var cachedOnChange = select[0].onchange;
>
> I get the onchange in a function, great!
>
>> select[0].onchange = null;
>
> What is the difference between this and unbind('change') or removeAttr
> ('onchange')?

I just found that althrough it works like you said with onchange, it  
doesn't work with onclick.

I have to use removeAttr('onclick') to really remove the original  
action...


-Nicolas

-- 
Nicolas "Brush" HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002
phpHeaven    : http://www.phpheaven.net/




_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to