i have a HTML like this. I need to get the selected value's count using the tag. How to do that using jQuery.
<select id="availability1">
<option value="Available">Available</option>
<option selected="selected" value="Scheduled">Scheduled</option>
<option value="Unavailable">Unavailable</option>
</select>
<select id="availability2">
<option value="Available">Available</option>
<option value="Scheduled">Scheduled</option>
<option selected="selected" value="Unavailable">Unavailable</option>
</select>
<select id="availability3">
<option value="Available">Available</option>
<option value="Scheduled">Scheduled</option>
<option selected="selected" value="Unavailable">Unavailable</option>
</select>
<select id="availability4">
<option value="Available">Available</option>
<option selected="selected" value="Scheduled">Scheduled</option>
<option value="Unavailable">Unavailable</option>
</select>
How to get the selected values which are Scheduled. The ids have a pattern availability(X). How to write this using jQuery. The output I expect is 2 since there are two selected tags which are Scheduled.
Thanks.