After Second Ajax Call Jquery Not Working
I'm getting a partial via ajax in asp.net mvc, it work fine for first time and second time but after that, it redirect to page instad of getting page via ajax. this is my partial p
Solution 1:
Your #getdata-@ViewBag.term
is within the #retrieve-@ViewBag.term
element but that gets replaced after the first call. You need to use event delegation.
Try this instead:
jqgd('#retrieve-@ViewBag.term').on('click', '#getdata-@ViewBag.term a', function () {
...
}
Post a Comment for "After Second Ajax Call Jquery Not Working"