案例:

  <select >four<option>
     </select>

获取代码:   

   var selectText = $("#paId").find("option:selected").text();  //one  获取Select选择的Text 
   var selectValue = $("#paId").val();//0  获取Select选择的val()

   var selText = $("#paId option:selected").attr("selValue");  //selone 获取attr的值

 var docuProjectBigType = document.getElementById("paId");
 docuProjectBigType.selectedIndex = contractTypeId-1;

相关文章:

  • 2021-11-03
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-10-24
  • 2021-08-04
相关资源
相似解决方案