jQuery pagination go to page on input value change
- by JV10
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:
http://www.gettyimages.com.au/Search/Search.aspx?contractUrl=2&language=en-US&family=creative&p=ball&assetType=image&clarification=ball%3A60847