Modify ↓
Ticket #11666 (closed bug: invalid)
partial views loaded via ajax in MVC3 will not bind to events listeners with .on()
| Reported by: | fulton.geoff@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
See http://stackoverflow.com/questions/2195168/jquery-events-dont-work-with-asp-net-mvc-partial-views for a full breakdown.
Basically, when binding events late, i.e., loading a partial view via ajax on MVC3, the new .on() will not work. However, .live() (the deprecated method) will attach successfully.
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.

There is no reference to .on not working in that post. Please ask for help on StackOverflow or another forum.