Skip to content Skip to sidebar Skip to footer

Jquery Works Only On First Page Load (ajax Paganation)

Only problem: jquery won't trigger the click event of my anchor link for rest of the ajax loaded pages except on first page. There are already many answers found with this topic bu

Solution 1:

Try to simplify your example and add this code to see if that works if it does expand fromt here.

Demo: http://jsfiddle.net/9hpaL/

$('button').click(function(){
$('body').append('<br><a href="#">Click me<a/>')
});

$('body').on('click', 'a', function(){
alert('It works!');
});

Post a Comment for "Jquery Works Only On First Page Load (ajax Paganation)"