Add a jQuery Function to a dynamically generated Control (ASP.NET)
<p>I create a Control (Dynamically):
Example:</p>

<pre><code>Button myButton = new Button();
myButton.Id = "button1";
</code></pre>

<p>.. and so far..</p>

<p>So, but now, how do I add this Button a jquery Function?</p>

<p>Something like this didn't work for me:</p>

<pre><code>$("#button1").live('click', function () {
alert("hi iam getting dynamic added button");});
</code></pre>

<p>What can I do? Hope u guys can help me :(</p>
