Results 1 to 5 of 5
Jan 6, 2014, 16:39 #1
- Join Date
- Jan 2014
- 0 Post(s)
- 0 Thread(s)
jQuery class not trigger after ajax
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
in HTML Body section Div class
<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.