Using jQuery to get a select box value with the selectedindex
<p>Is it possible with jQuery to get the value of a select box item based on the selected index? I ask because what I actually need is the value of the items before and after the current selectedindex for next/previous buttons.  This is the code I tried but it did not work.</p>

<pre><code>var my_value = $('#my_element_id').attr("selectedIndex").val();
</code></pre>
