Hi there,

I had searched everywhere but not able to find the solutions for my current problem. Appreciate if any could help me out. Thanks in advance.

Using "class" to trigger jQuery. The code works on first html load but after sub-page reload thru ajax, the "class" no longer trigger. However, if using 'click', it still trigger. I want it to trigger whenever a "class" name is defined like first load.

Test codes are as follow:

HTML Head section
Code:
<script language="javascript" type="text/javascript">
$(document).ready(function(){
$('body').on('click','.clickMe',function(){
	alert("Click Ok!");
});	 
});


$(document).ready(function(){
$('.alertMe').each( function(){
   alert('Alert Ok!');
});
});

</script>

in HTML Body section Div class

Code:
<div id="click1" class="clickMe">Click me to trigger</div>
<div id="alert1" class="alertMe">Alert Me</div>


ClickMe works even printing same div with same class after ajax called.

However, alertMe will execute on first page load, after ajax call, any div class print will not trigger.

Hope someone can help me out here. Thanks.