How to get the count of selected values in a dropdown using jQuery
<p>i have a HTML like this. I need to get the selected value's count using the  tag. How to do that using jQuery.</p>

<pre><code>&lt;select id="availability1"&gt;
  &lt;option value="Available"&gt;Available&lt;/option&gt;
  &lt;option selected="selected" value="Scheduled"&gt;Scheduled&lt;/option&gt;
  &lt;option value="Unavailable"&gt;Unavailable&lt;/option&gt;
&lt;/select&gt;

&lt;select id="availability2"&gt;
  &lt;option value="Available"&gt;Available&lt;/option&gt;
  &lt;option value="Scheduled"&gt;Scheduled&lt;/option&gt;
  &lt;option selected="selected" value="Unavailable"&gt;Unavailable&lt;/option&gt;
&lt;/select&gt;

&lt;select id="availability3"&gt;
  &lt;option value="Available"&gt;Available&lt;/option&gt;
  &lt;option value="Scheduled"&gt;Scheduled&lt;/option&gt;
  &lt;option selected="selected" value="Unavailable"&gt;Unavailable&lt;/option&gt;
&lt;/select&gt;

&lt;select id="availability4"&gt;
  &lt;option value="Available"&gt;Available&lt;/option&gt;
  &lt;option selected="selected" value="Scheduled"&gt;Scheduled&lt;/option&gt;
  &lt;option value="Unavailable"&gt;Unavailable&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>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.</p>

<p>Thanks.</p>
