I am facing a problem in the jquery click event.
My web page involves creating a button through javascript and assigning a class to the button ( call it A ). Now I want to detect the click of that button and I have written the following code for it :
$(".A").click( function () {
// do something
});
To my surprise, this click event never gets called.
But when I make the button statically on the webpage ( during design time ), the same code works.
Is there a different approach to bind a button click with jquery in case a button is created dynamically?