how to add event for dynamically created textbox using jquery
<p>I am creating some html dynamically using jquery. I added a textbox in this html. Now I want to add some click event for every textbox which I have created. Can anybody please tell me how to do it ?. Here is the code which I written for create dynamic html</p>

<pre><code>var html = '';
html += '&lt;div class="post-box"&gt;';
html += '&lt;h2&gt;&lt;img alt="Post profile" src="img/post-profile.png"&gt;&lt;span class="col-lg-10"&gt;' + value['username'] + '&lt;a href="#"&gt;Desi Rockers&lt;/a&gt;';
html += '&lt;div class="setting"&gt;&lt;a href="#"&gt;&lt;img alt="Setting" src="img/setting.png"&gt;&lt;/a&gt;&lt;/div&gt;&lt;br&gt;';
html += '&lt;div class="time"&gt;'+value['postdate'] +'&lt;img alt="Post to Friend" src="img/post-friend.png"&gt;&lt;/div&gt;&lt;/span&gt; &lt;/h2&gt;'
html += '&lt;div class="clearfix"&gt;&lt;/div&gt;';
html += '&lt;div id="postcontent" class="col-lg-12 col-sm-12 col-xs-12 mypost"&gt;' + value['postcontent'] + '&lt;/div&gt;';
html += '&lt;div class="comment-pnl music-pnl"&gt;';
html += '&lt;ul&gt;';
html += ' &lt;li&gt;&lt;a href=""&gt;&lt;img align="Like" src="img/like-bt.png"&gt;&lt;/a&gt;&lt;/li&gt;';
html += '&lt;li&gt;&lt;a href=""&gt;&lt;img align="Comment" src="img/comment.png"&gt;&lt;/a&gt;&lt;/li&gt;';
html += '&lt;li&gt;&lt;a href=""&gt;&lt;img align="Sahre" src="img/share.png"&gt;&lt;/a&gt;&lt;/li&gt;';
html += '&lt;/ul&gt;';
html += '&lt;div class="clearfix"&gt;&lt;/div&gt;';
html += '&lt;/div&gt;';
html += '&lt;div class="comment-box col-lg-12 col-sm-12 col-xs-12"&gt;'
html += '&lt;div class="like-box1"&gt;&lt;img alt="" src="img/like-bg.png"&gt; &lt;a href="#"&gt;john&lt;/a&gt;,';
html += ' &lt;a href="#"&gt;preet&lt;/a&gt; and &lt;a href="#"&gt;10 others&lt;/a&gt;&lt;/div&gt;';
html += '&lt;/div&gt;';
html +='&lt;div class="usre-comment col-lg-12 col-sm-12 col-xs-12"&gt;&lt;a href="#"&gt; &lt;img src="img/artist-profile.png" alt="User Profile" &gt;&lt;/a&gt; &lt;div class="comment-b1 col-lg-10 col-sm-10 col-xs-9" &gt; &lt;input type="text" class="col-lg-10 text1 col-sm-10 col-xs-12" &gt; &lt;a href="#"&gt;&lt;img src="img/camera2.png" alt="Images" &gt;&lt;/a&gt; &lt;a href="#"&gt;&lt;img src="img/smile.png" alt="Smile" &gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;'

$('#post-content').prepend(html);
</code></pre>

<p>Can anybody please tell me how to add event for each textbox created</p>

<p>Thanks</p>