Michael Keck a écrit :
Am 12.09.2010 13:42, schrieb Marc Delisle:
Michael,
I also need to do
.attr('onchange', '')
otherwise the code inside onchange executes.
Okay, but this is not really jQuery?!
Indeed, we still have legacy js code like onchange and onclick; it would
take time to remove it all.
Unbinding an event should do it:
$('#id_of_the_element').unbind('change');
And binding a new event:
$('#id_of_the_element').bind('change', function() { ... });
Perhaps you can try:
$('#id_of_the_element').bind('change', null);
Michael
--
Marc Delisle
http://infomarc.info