[Phpmyadmin-devel] jQuery question

Michael Keck sfnet at michaelkeck.de
Sun Sep 12 16:11:48 CEST 2010



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?!
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 583 bytes
Desc: OpenPGP digital signature
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20100912/52fd2288/attachment.sig>


More information about the Developers mailing list