Problem with jquery button click
<p>I am facing a problem in the jquery click event.</p>

<p>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 :</p>

<pre>
 $(".A").click( function () {

    // do something

 });
</pre>

<p>To my surprise, this click event never gets called.</p>

<p>But when I make the button statically on the webpage ( during design time ), the same code works.</p>

<p>Is there a different approach to bind a button click with jquery in case a button is created dynamically?</p>
