js获取下拉列表框元素的个数
<form>
<select id="mySelect">
<option>Apple</option>
<option>Pear</option>
<option>Banana</option>
<option>Orange</option>
</select>
<input type="button" onclick="getLength()" value="How many options in the list?">
</form>
</body>
</html>
新闻热点
疑难解答