Can someone help provide the jQuery to be able to randomly select an option from an existing select object?
For example:
<select id="items">
<option value="1">Item A</option>
<option value="4">Item B/option>
<option value="8">Item C</option>
</select>
Since the values are not sequential, I assume I can't use the $('#items option').length
as a multiplier for Math.random
.