Modify ↓
Ticket #10783 (closed bug: invalid)
select
| Reported by: | denis.rudov@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.