jquery how can i bind click event to string based elements?
<p>i am making a loop, and getting the thumb image info, this is the code for that,</p>

<pre><code>$.map(galImg, function ( val ,i ){
  // adding no.of li's
  thumList += '&lt;li&gt;&lt;img src='+val.thumb+'&gt;&lt;/li&gt;';   
})

thumList += "&lt;/ul&gt;"

// finally placed in to navi div.
navi.html(thumList); 
</code></pre>

<p>Up to all works find. but what i am looking is, how can i add the click event to each of this <code>&lt;li&gt;</code>'s? while i make (Because once the user click on the <code>&lt;li&gt;</code>'s i will get the index number and replace the slider accordingly.)</p>
