how to register events for ajax returned html tags?
<p>I'm new to jquery so I don't know if I have titled the question correctly. For post back html marks, I can register events for the  like:</p>

<pre><code>$(document).ready(function () {
 $(":input[data-autocomplete]").each(function () {
 ...});
</code></pre>

<p>now I need to allow user to click a button to add more items by triggering an ajax call and append the server response that contains the marks for the new item :</p>

<pre><code>$(this).click(function(){
     $.get("my url", {}, function (data) {$("#xxx").append(data);});
     });
</code></pre>

<p>My question is: now there are some new marks with attribute [data-autocomplete] within returned "data",how can I do the same events registration for them? Thanks!</p>
