html select

<select id="PCVoiceEnable" style="float:left;height:30px; ">
  <option value="PC">开</option>
  <option value="CLOSE">关闭</option>
</select>

 

$("#PCVoiceEnable").attr("checked", true);

document.getElementById("PCVoiceEnable")[0].selected = true;

var voiceValue = $("#PCVoiceEnable option:selected").attr("value");
OtherCfg.PCVoiceEnable = voiceValue;

 

posted @ 2024-08-21 16:39  晨光静默  阅读(9)  评论(0编辑  收藏  举报