jquery how can i bind click event to string based elements?
===

i am making a loop, and getting the thumb image info, this is the code for that,

                    $.map(galImg, function ( val ,i ){
                        thumList += '<li><img src='+val.thumb+'></li>';   //adding no.of li's
                    })
                    
                    thumList += "</ul>"
                    
                    navi.html(thumList); // finally placed in to navi div.

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