Jquery Click Event Not Firing On First Click, but does on second click, why?
I've got a jquery code, which $("a.reply").click(function() { //code }); When I click the link with .reply class the first time, nothing happens. The second time I click, the code inside the click function works. The link is being inserted on the page using php from a mysql database. so it's not being inserted dynamically. Why is this happening? Any solution? The BadASS Code: $(function(){ //TextArea Max Width var textmaxwidth = $('#wrapper').css('width'); //Initialize Focus ids To Different Initially var oldcommentid = -1; var newcommentid = -2; //End Of initialization $("a.reply").click