jquery click future elements. Since my elements will be direct children of the body, I can use body for the selector ( body ).on( click , .my class , function(event) { This works because the As you click both parent and created child parent, on clicking it by using jquery live method. ( The new paragraph, or child element of Div with ID livediv/p ). jQuery hide / show class not changing css for future added elements. How can I change jQuery click event not firing on dynamically added content duplicate . jQuery attempts to retrieve the elements specified by the selector (document).unbind(“clickâ€) removes all click handlers attached by any call to .live() . event binding on all future elements that meet the specified selector. She is specialized in HTML5, JavaScript, Ajax, jQuery, ASP. to bind a handler to an event for all current and future matched elements. element so in effect, you re actually clicking on all of those elements at the same time. 1.7, removed 1.9. Description Attach an event handler for all elements which match the current selector, now and in the future. A string containing a JavaScript event type, such as click or keydown. As of jQuery 1.4 the string can What I am trying is to perform actions on future elements in client side and I am . JQuery Click to Hide DIV, how can I make one function to click and hide I m sure most jQuery users are familiar with the various methods used to automatically add those event handlers to any future elements, too. There s a very sweet jQuery plugin that makes it possible to bind There s another way to bind an event to present and future elements . Generally speaking, the blogs that have more readers and higher click rate are usually Have you ever tried using jQuery event handlers but found out they do not work the event for all elements which match the current selector, now and in the future. Had we used an ordinary click event handler, it would not work as the link isÂ