我一定是在做一些愚蠢的事情,但我有一个截止日期,盯着它看是找不到的。
请在此处查看非常简单的 JSFiddle:
<span>Select 'One', 'Two' or 'Three' from the drop down.<br /></span>
<span>Then click the 'Reset' button'.<br /></span>
<span>Why does the Drop Down not reset to 'Please Select'?<br /></span>
<input id="reset" type="button" value="Reset" name="reset" /><br />
<script>
var $reset = $('#reset');
$reset .click(function() {
$('#myddl').val("0");
});
</script>
<select id="myddl" name="myddl">
<option value="0">Please Select</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
谢谢,
埃里克