Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14592 closed bug (notabug)

.removeClass and click method

Reported by: przemyslaw.lazarek@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description

Hi, Check this. I use $.click method on class atribute (on element) , after click i remove class in element and .click method still work !

Here you are, a demo: http://jsfiddle.net/8JLxb/

Change History (2)

comment:1 Changed 6 years ago by przemyslaw.lazarek@…

Tested on Chrome <newest>.

comment:2 Changed 6 years ago by timmywil

Resolution: notabug
Status: newclosed

Manipulating classes after binding the event has no effect on whether the event is bound. You can find support on stackoverflow, the jQuery forums, or in the #jquery irc channel.

Note: See TracTickets for help on using tickets.