I added this jquery code to my page. $(document).ready(function(){ $("a.showHidePrograms").click( function () { var $div= $(this).parent().next("div"); if($div.attr("class") == 'hide'){ $div.attr("class","show"); }else{ $div.attr("class","hide"); } } ); });
inside my html I have a table this contains anchor tag with class showHidePrograms. onclick of this anchor tag the function gets called everything is fine. This page also has some ajaxLinks on click of this link I repaint the table, after this when I click on anchor tag the jquery script is not called , does repainting somehow hides this anchor from jquery ?