sherbug1015
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:__doPostB ack('p$lt$ ctl07$page placeholde r$p$lt$ctl 01$RowLayo ut$RowLayo ut_3$Unive rsalPager$ 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.
Using the Inspector, here is the html for the universal page widget.
<a href="javascript:__doPostB
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.
does __doPostBack() emit an Ajax request or does the url on the browser change? Also , are you using some js library?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.