<sup id="aujsq"></sup>
    <noscript id="aujsq"><nobr id="aujsq"></nobr></noscript>

    <tr id="aujsq"></tr>

  1. <output id="aujsq"></output>
    1. <ins id="aujsq"><acronym id="aujsq"></acronym></ins>

    2. 龍巖易富通網絡科技有限公司

      龍巖小程序開發,龍巖分銷系統

      jquery操作select(取值,設置選中)

      2019.03.16 | 1435閱讀 | 0條評論 | javascript


      1、獲取

      var checkText=$("#select_id").find("option:selected").text();  //獲取Select選擇的Text

      var checkValue=$("#select_id").val();  //獲取Select選擇的Value

      var checkIndex=$("#select_id ").get(0).selectedIndex;  //獲取Select選擇的索引值

      var maxIndex=$("#select_id option:last").attr("index");  //獲取Select最大的索引值


      贊 (

      發表評論

      无码一区二区三区