jquery click not working on ajax loaded content

Solutions on MaxInterview for jquery click not working on ajax loaded content by the best coders in the world

showing results for - "jquery click not working on ajax loaded content"
Paula
13 Sep 2017
1$(document).on("click", '.mylink', function(event) { 
2    alert("new link clicked!");
3});
Charmaine
25 Jan 2017
1The problem is that .click only works for elements already on the page.
2You have to use something like on if you are wiring up future elements
3
4$("#LangTable").on("click",".deletelanguage", function(){
5  alert("success");
6});
queries leading to this page
function not work on a ajax loaded contentjquery html not working ajax after loadingajax loaded contentb click eventafter ajax load data jquery event not workingclick event is not working on ajax loaded contentajax new data event content loadclick event on ajax loaded contentjquery ajax click on ajax loaded contentjquery ajax response code click not workingjquery ajax after button click not workingjquery click not working after ajaxattache events to ajax loaded content jqueryjquery click on ajax loaded contentjquery can 27t click button after ajax loadadd on click function to ajax load functionget ajax event loadhow to load data to a ajax loaded elementjquery onclick not working on ajax loaded contentjquery not working on ajax loaded contentclick doesn 27t work on ajax loaded dataajax content is loaded callbackajax script onclick not workingenable jquery bind on ajax loaded contentevents not working after ajax loadjquery validator not working with ajax loaded contentbind ajax to new dom functionjavascript event listener on ajax loadhow to fire event for ajax loaded content as wellajax when content is loaded eventafter ajax loaded html not show in jqueryclick function ajax loaded contentjquery bind event on ajax contentjquery not working ajax loaded contentjavascript bind to div loaded by ajaxjquery click not working on ajax loaded contentevent handling for loaded content jqueryajax content is loaded ajax loaded content jquery not workingjavascript event listener current ajax is loadedon ajax loadedclick on ajax loaded contentclick not working after ajax content has loadedjquery click not working on ajax loaded content