This should be really simple with jQuery but I cant get it to work! Cant seem to find anything on searches either …
I have a select list, and I want to use + and – buttons next to it (like quantity boxes) to cycle through the list values, so the user does not need to click the dropdown, scroll and select.
Effectively I need a select list, with ‘next’ and ‘previous’ buttons that simply fire jQuery on click and cycle up and down the values.
A bit sample script would be wonderful.
Given the following
<html/>And the script:
Note, this relies on jQuery 1.6 and
.prop(), if using less than 1.6 use.attr()Example on jsfiddle