Getting lastIndexOf on a Dropdown
<p>Here's my attempt to get the last item in the dropdown and check it:</p>

<pre><code>if (day.lastIndexOf(day.length) == 28) {

..do something

}
</code></pre>

<p>day var is set to reference dropdown control.  Obviously I am not doing this right.  How do I know where I can apply lastIndexOf on a dropdownlist?  How do I get at it's array?  I tried this also but it doesn't work, syntax error:</p>

<pre><code>day.options.lastIndexOf(day.length)
</code></pre>

<p>one would think that should work, options is an array of values I think..has to be.</p>
