Bug Tracker


Ticket #10783 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago


Reported by: denis.rudov@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7
Keywords: Cc:
Blocking: Blocked by:


When trying to assign .on the method to an element within the option in select, where option is created dynamically does not work. Version 1.7 jquery. $('select option').on('click',function(){

... });

Whith .live methode all right!

Change History

comment:1 Changed 2 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

That syntax will not bind delegated events. Please re-read the documentation on how to translate .live calls to .on, and ask for help on the forum if you need it.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.