Test case for jQuery Ticket 8293

.val(null) on select is not the same as selectedIndex -1

by jitter

HTML

<select id="one">
    <option>1</option>
    <option>2</option>
</select>

<select id="two">
    <option />
    <option>1</option>
    <option>2</option>
</select>

JavaScript

$("#one, #two").val(null);