Use on :
$('#registered_participants').on('click', '.new_participant_form', function() {
So that the click is delegated to any element in #registered_participants
having the class new_participant_form
, even if it’s added after you bound the event handler.
More Related Contents:
- Can I open a dropdownlist using jQuery
- iframe to Only Show a Certain Part of the Page
- How to force a html5 form validation without submitting it via jQuery
- Play/pause HTML 5 video using JQuery
- How to set data attributes in HTML elements
- How to automatically change the text size inside a div?
- jquery IE Fadein and Fadeout Opacity
- jQuery html() in Firefox (uses .innerHTML) ignores DOM changes
- Activate CSS3 animation when the content scrolls into view
- Store JSON object in data attribute in HTML jQuery
- Jquery datepicker restrict dates in second date field based on selected date in first date field
- How can I show and hide elements based on selected option with jQuery?
- jQuery Scroll to Div
- expand/collapse table rows with JQuery
- How to stay on current window when the link opens in new tab?
- How can I display a tooltip on an HTML “option” tag?
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery [closed]
- jQuery get the id/value of element after click function
- Removing file from multiple files uploader on button click when using HTML5 file input
- Creating a hole in a element
- CORS request – why are the cookies not sent?
- How can I change HTML attribute names with jQuery?
- Post JSON to Python CGI
- jquery can’t get data attribute value
- How to keep footer at the bottom even with dynamic height website
- Animate counter when in viewport
- Jquery addclass/removeclass on click
- Wrap some specified words with span in jQuery?
- jQuery is adding a strange attribute to nodes
- What happens when no response is received for a request? I’m seeing retries