2011-02-09 68 views

回答

8

設置selectedIndex屬性設置爲-1:

// Plain JS: 
document.getElementById("myList").selectedIndex = -1; 

// Using jQuery to select the element: 
$("#myList")[0].selectedIndex = -1; 

工作演示:http://jsfiddle.net/n84AW/

+0

超級(Y):) .................. – 2011-02-09 14:25:15

相關問題