获取选中项的值
动态添加选项
设置select选中项,即索引
$jq("#mselect option:selected").val();
动态添加选项
for(var i=0;i<optionnum-1; i++){
$jq("#mselect").append("<option value='"+(i+2)+"'>最多选"+(i+2)+"项</option>");
}
设置select选中项,即索引
$jq("#mselect").get(0).selectedIndex = maxselect;