-
In this way, the click event did not work.$("#btnId").click( function() { // do it. } I fixed it like this.$(document).on("click", "#btnId", function() { // do it. } It works well.