Given a dropdown list with many items:
<select id="selectId">
<option value="1">Item #1</option>
<option value="2">Item #2</option>
...
<option value="100">Item #100</option>
</select>
I'm wondering how to write a jQuery function to scroll up/down by a specified number of items.
Note: There are similar SO questions for scrolling to a specified element but how would I know which element this is? All that should be passed in the function interface is the number of elements to scroll up or down from the current scroll position...