>>> 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...

But I can't use the original onclick I have saved in a variable... :(

Here is a little example:
http://www.gasteroprod.com/data/jquery/jquery-bind-prepend.html

If you click on "Google" and say "Yes", I would like it to run the  
original "alert()" instead of following the link...

Any idea?


-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