//select combox的運用spa
<select class="combox" name="">
<option value="0">請選擇</option>
<option value="1" ${Gender eq '1' ? 'selected="selected"' :''}>男</option>
<option value="2" ${Gender eq '2' ? 'selected="selected"' :''}>女</option>
</select>get
${Gender eq '1' ? 'selected="selected"' :''} 也能夠換成 <c:if>io
// DCVP
for(var i=0;i<count;i++)
{
var at=$("#select1").get(0).options[i].value;
if(at.indexOf("DCVP")>0)
{
document.getElementById("12s").style.display="none"; //隱藏12s
document.getElementById("DCVP").value="";
break;
}
}class
循環獲select 的某個option,判斷是否包含dcvpselect