jQuery Live event binding
<p>I have requirement like i will dynamically get a set of divs having random id's from my web service. And once it is added to my html i would like to bind some events to the id's. now my problem is if i am binding the event using for loop over the array of ID, when the scope of the loop finishes the events scope get destroyed.</p>

<p>ex:</p>

<pre><code>var arrID={'1','2','3'};
for(var d in arr)
{
   arrID.live("click",function() {});
}

//scope of for loop finishes here, hence the scope of click also.
</code></pre>

<p>How to overcome this problem? Thanks.</p>
