My personal opinion is that each one cleans its stuff. If we didn't
create it, we shouldn't clean it either.
Inline events are bad and we provide good alternatives, specially now
that live was added.
So, I think that if someone REALLY needs to use inline handlers then
it won't be too critical to do:
$('..').unbind('click').attr('onlick','');
My 2 cents
--
Ariel Flesler
http://flesler.blogspot.com
On Jan 15, 3:32 pm, TMQuinn <[email protected]> wrote:
> If an event is defined in a tag, say <img onclick="alert('Sneh');" />,
> then $(img).unbind() has no effect on the onclick attribute. I have
> to go in an set the onclick="".
>
> Is this expected behavior?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---