I have a webpage with search form fields and on click of submit button, I do an Ajax call and fill a div with results using Ajax.BeginForm
The results have paging links to handle paging.
The problem is after the Ajax call I have this Jquery code that should fire when one of the paging links is clicked. But they do not fire.
Is this because the div is filled using Ajax call?
I tested that code using the click of the submit button and it fires ok. Just the paging links don't fire.
$('.pagerlinks a').click(function () {
$('#resultsdiv').load('Search/Advanced', { Keywords=keywords, etc });
});