Before jQuery 1.8 I was able to use .live() to fire when a button was clicked that was dynamically inserted by jquery.
Now, .on() and .bind() both do not work for elements added to DOM after the page was loaded.
What are the options now?
Before jQuery 1.8 I was able to use .live() to fire when a button was clicked that was dynamically inserted by jquery.
Now, .on() and .bind() both do not work for elements added to DOM after the page was loaded.
What are the options now?
http://api.jquery.com/on/#direct-and-delegated-events
delegate is far efficient than on handler