2014-02-26 55 views

回答

1

循环:

这个问题是根据。测试其中每个元素的selected属性。如果selected为真,则根据标签/值做任何你喜欢的事情。

0

用jQuery,它的工作就是这样,

$("select option:selected").each(function() { 
     console.log($(this).val()); // for the text 
}); 
相关问题