1. 程式人生 > >js獲取獲取select:option選中的多個值

js獲取獲取select:option選中的多個值

sele lec sel div alert clas option spa log

<!--快速獲取select選中值-->
<select id = ‘tagName‘></select>

var tag = $("#tagName option:selected");
msg = tag.text();
alert(msg);

js獲取獲取select:option選中的多個值