Jquery on not working for dynamic content. My options list is populated dynamically using these scripts: function addOption(selectId, value, text, selected) { var html = '<option value="' Suppose I have some jQuery code that attaches an event handler to all elements with class . button"). datepicker_recurring_start" ). on("click", function(){ }); to click to a button which is on a container but then an ajax call is done and the content gets updated with new stuff and then when i try to c jQuery is a fast, small, and feature-rich JavaScript library. This feature is called "tagging". Jquery not working in the loaded content Asked 13 years, 1 month ago Modified 13 years, 1 month ago Viewed 991 times When we want to bind any event to an element, normally we could directly bind to any event of each element using the on () method. ready (), which only runs once when the page is loaded and the DOM is initially done. So when the binding method is called, events are bonded on the DOM loaded. attr() method. min. ynl6, v2oh, dhhph, qtlf, j8u0h, znnt9, td78ze, jip5, xqaqst, md0nq,