I\'d like to loop through all of the select inputs on a page and if the selected value is not a certain option then set that value to selected
I have some selects
You can pass the desired option value to .val() method while targeting select to select required option element:
.val()
$('select').val('2');
Working Snippet:
One Two Three Four Five One Two Three Four Five One Two Three Four Five