how to find the index of the currect opyion in a selected list
<p>I have a select box and I want to try and get the index of the current selected option.
I can get the value of this with.</p>

<p>(#mySelectBox).val();</p>

<p>what I'm after is if say val was set by default to the last option which would be option3 I want to get the index of that option.</p>

<pre><code>    &lt;div class="selectItems"&gt;
        &lt;select id="mySelectBox"&gt;
            &lt;option value="0"&gt;option1&lt;/option&gt;
            &lt;option value="1"&gt;option2&lt;/option&gt;
            &lt;option value="2"&gt;option3&lt;/option&gt;
        &lt;/select&gt;
    &lt;/div&gt;
</code></pre>
