how to fire event for ajax loaded content as well code example
Example: jquery click not working on ajax loaded content
$(document).on("click", '.mylink', function(event) {
alert("new link clicked!");
});
$(document).on("click", '.mylink', function(event) {
alert("new link clicked!");
});