<a class="clickme" href=#>clickme</a>


$('a.clickme').click(function(){ alert('hello')});

only work on DOM that already exists. it is not working.if the html above injected on existing DOM.
in this case you have to use.


$('a.clickme').live('click', function(){alert('hello')});

jquery live
jquery events not firing on dynamics