Code is correct ...it would work for html like this <span id="Pager1"><a>1</a></span>, check generated html to see if it is same. Make sure you write it inside $(document).ready(function(){}); I tested it at my end and its working fine...obviously i replaced
var pageId = $(this).text() with alert($(this).text());
Thanks
Please mark the post as "Answer" that helps you.
Marked as answer by vish02chouhan on May 04, 2012 06:58 AM
me_ritz
Star
9337 Points
1447 Posts
Re: Problem in paging
May 04, 2012 04:49 AM|LINK
Code is correct ...it would work for html like this <span id="Pager1"><a>1</a></span>, check generated html to see if it is same. Make sure you write it inside $(document).ready(function(){}); I tested it at my end and its working fine...obviously i replaced var pageId = $(this).text() with alert($(this).text());
Thanks