Link to home
Start Free TrialLog in
Avatar of sherbug1015
sherbug1015Flag for United States of America

asked on

Use jquery to find the page number

I have an issue where I need to disable to drop down when the page number is greater than 1.

Using the Inspector, here is the html for the universal page widget.

<a href="javascript:__doPostBack('p$lt$ctl07$pageplaceholder$p$lt$ctl01$RowLayout$RowLayout_3$UniversalPager$pagerElem','1')">1</a>

As the user clicks through the $pagerElem with change.  I need to use a click event when this anchor is clicked and determine what page it is on and then disable and drop down if the page number > 1

Any ideas on how I can grab the page number from this html.

Thanks.
Avatar of hielo
hielo
Flag of Wallis and Futuna image

does __doPostBack() emit an Ajax request or does the url on the browser change?  Also , are you using some js library?
Avatar of sherbug1015

ASKER

The url on the browser does not change, so this is probably an Ajax request.  We are using jquery 1.4 library
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial