title: Get number of visible select options
body: <p>I have a select that looks like this:</p>
  
  <pre><code>&lt;select id="days"&gt;
  &lt;option value="nothing"&gt;Select day&lt;/option&gt;
  &lt;option value="monday2"&gt;Monday&lt;/option&gt;
  &lt;option value="tuesday2"&gt;Tuesday&lt;/option&gt;
  &lt;option value="wednesday2"&gt;Wednesday&lt;/option&gt;
  &lt;option value="thursday2"&gt;Thursday&lt;/option&gt;
  &lt;option value="friday2"&gt;Friday&lt;/option&gt;
  &lt;option value="saturday2"&gt;Saturday&lt;/option&gt;
  &lt;option value="sunday2"&gt;Sunday&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I want to know how many of the options in the select days are visible. The reason to this is because I have a function that may hide some of these options</p>
  
  <p>I've tried something like this but it didnt work:</p>
  
  <pre><code>visibleoptions = $("days option:visible").index()+1;
  </code></pre>
  
  <p>Thanks in advance</p>