My select is giving me undefined for is index.
My code:
HTML
<div name="daysToReorder" class="days_to_reorder" onchange="getReOrderTables(this)"> Day to reorder <br>
<select name="daysToReorder">
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
<option value="E">E</option>
<option value="F">F</option>
</select></div>
JS
function getReOrderTables(select)
{
alert(select.selectedIndex);
}
thisis the<div/>, not the<select/>(div's doesn't have aselectedIndex-property)