• <tfoot id='K4J2D'></tfoot>

      1. <small id='K4J2D'></small><noframes id='K4J2D'>

          <bdo id='K4J2D'></bdo><ul id='K4J2D'></ul>
        <legend id='K4J2D'><style id='K4J2D'><dir id='K4J2D'><q id='K4J2D'></q></dir></style></legend>
        <i id='K4J2D'><tr id='K4J2D'><dt id='K4J2D'><q id='K4J2D'><span id='K4J2D'><b id='K4J2D'><form id='K4J2D'><ins id='K4J2D'></ins><ul id='K4J2D'></ul><sub id='K4J2D'></sub></form><legend id='K4J2D'></legend><bdo id='K4J2D'><pre id='K4J2D'><center id='K4J2D'></center></pre></bdo></b><th id='K4J2D'></th></span></q></dt></tr></i><div id='K4J2D'><tfoot id='K4J2D'></tfoot><dl id='K4J2D'><fieldset id='K4J2D'></fieldset></dl></div>

      2. layui获取select选中的值

        时间:2023-10-08
        <tfoot id='H9MOx'></tfoot>

              <tbody id='H9MOx'></tbody>
            <i id='H9MOx'><tr id='H9MOx'><dt id='H9MOx'><q id='H9MOx'><span id='H9MOx'><b id='H9MOx'><form id='H9MOx'><ins id='H9MOx'></ins><ul id='H9MOx'></ul><sub id='H9MOx'></sub></form><legend id='H9MOx'></legend><bdo id='H9MOx'><pre id='H9MOx'><center id='H9MOx'></center></pre></bdo></b><th id='H9MOx'></th></span></q></dt></tr></i><div id='H9MOx'><tfoot id='H9MOx'></tfoot><dl id='H9MOx'><fieldset id='H9MOx'></fieldset></dl></div>

                • <bdo id='H9MOx'></bdo><ul id='H9MOx'></ul>

                  <legend id='H9MOx'><style id='H9MOx'><dir id='H9MOx'><q id='H9MOx'></q></dir></style></legend>

                  <small id='H9MOx'></small><noframes id='H9MOx'>

                  layui如何获取select选中的值,下面代码为您实现layui table中获取select选中值
                   <select name="region" lay-filter="region-dropdown">
                      <option value="ap-chengdu">成都</option>
                      <option value="ap-nanjing">南京</option>
                      <option value="ap-beijing-1">北京一区</option>
                      <option value="ap-beijing">北京</option>
                      <option value="ap-guangzhou">广州</option>
                      <option value="ap-shanghai">上海</option>
                      <option value="ap-chongqing">重庆</option>
                  </select>
                   
                  //用 jquery 获取 select 选中的值:
                   
                  layui.use(['form'], function(){
                      var $ = layui.$
                      ,form = layui.form;
                   
                      var region = $("select[name='region']").val();
                      console.log(region);
                      // ap-chengdu
                  })
                  
                  //监听 select 选择来获取 select 选中的值:
                   
                  layui.use(['form'], function(){
                      var $ = layui.$
                      ,form = layui.form;
                   
                      //监听地区下拉
                      form.on('select(region-dropdown)', function(data){
                          console.log(data.elem); //得到select原始DOM对象
                          console.log(data.value); //得到被选中的值
                          console.log(data.othis); //得到美化后的DOM对象
                      })
                      // ap-chengdu
                  })
                  上一篇:layer.open()详细参数对照说明 下一篇:没有了

                  相关文章

                  最新文章

                  <legend id='hqb79'><style id='hqb79'><dir id='hqb79'><q id='hqb79'></q></dir></style></legend>
                • <i id='hqb79'><tr id='hqb79'><dt id='hqb79'><q id='hqb79'><span id='hqb79'><b id='hqb79'><form id='hqb79'><ins id='hqb79'></ins><ul id='hqb79'></ul><sub id='hqb79'></sub></form><legend id='hqb79'></legend><bdo id='hqb79'><pre id='hqb79'><center id='hqb79'></center></pre></bdo></b><th id='hqb79'></th></span></q></dt></tr></i><div id='hqb79'><tfoot id='hqb79'></tfoot><dl id='hqb79'><fieldset id='hqb79'></fieldset></dl></div>

                  <small id='hqb79'></small><noframes id='hqb79'>

                        <bdo id='hqb79'></bdo><ul id='hqb79'></ul>
                      <tfoot id='hqb79'></tfoot>