jQuery pagination go to page on input value change
Posted
by
JV10
on Stack Overflow
See other posts from Stack Overflow
or by JV10
Published on 2012-10-31T02:04:04Z
Indexed on
2012/11/01
5:01 UTC
Read the original article
Hit count: 178
I'm creating some pagination for my website, and want to use an input-element to navigate between pages.
Like the following example:
The input would require the "return" key to be hit for the script to trigger.
If the value entered is not within range and alert would trigger. e.g. If there was 32 pages, "Please enter a value between 1 and 32"
Can this be done using jQuery or javascript, by detecting the value change within the range of pages and redirecting to that page?
I'm trying to create the same device on Getty Images:
© Stack Overflow or respective owner