<tfoot id='TjgL6'></tfoot>

  • <small id='TjgL6'></small><noframes id='TjgL6'>

        <bdo id='TjgL6'></bdo><ul id='TjgL6'></ul>
    1. <i id='TjgL6'><tr id='TjgL6'><dt id='TjgL6'><q id='TjgL6'><span id='TjgL6'><b id='TjgL6'><form id='TjgL6'><ins id='TjgL6'></ins><ul id='TjgL6'></ul><sub id='TjgL6'></sub></form><legend id='TjgL6'></legend><bdo id='TjgL6'><pre id='TjgL6'><center id='TjgL6'></center></pre></bdo></b><th id='TjgL6'></th></span></q></dt></tr></i><div id='TjgL6'><tfoot id='TjgL6'></tfoot><dl id='TjgL6'><fieldset id='TjgL6'></fieldset></dl></div>
        <legend id='TjgL6'><style id='TjgL6'><dir id='TjgL6'><q id='TjgL6'></q></dir></style></legend>
      1. layui获取select下面的选项值和value值

        时间:2023-10-08

          <tfoot id='hTAQ9'></tfoot>
            <tbody id='hTAQ9'></tbody>
              <i id='hTAQ9'><tr id='hTAQ9'><dt id='hTAQ9'><q id='hTAQ9'><span id='hTAQ9'><b id='hTAQ9'><form id='hTAQ9'><ins id='hTAQ9'></ins><ul id='hTAQ9'></ul><sub id='hTAQ9'></sub></form><legend id='hTAQ9'></legend><bdo id='hTAQ9'><pre id='hTAQ9'><center id='hTAQ9'></center></pre></bdo></b><th id='hTAQ9'></th></span></q></dt></tr></i><div id='hTAQ9'><tfoot id='hTAQ9'></tfoot><dl id='hTAQ9'><fieldset id='hTAQ9'></fieldset></dl></div>
                <bdo id='hTAQ9'></bdo><ul id='hTAQ9'></ul>
                <legend id='hTAQ9'><style id='hTAQ9'><dir id='hTAQ9'><q id='hTAQ9'></q></dir></style></legend>
                1. <small id='hTAQ9'></small><noframes id='hTAQ9'>

                  具体代码如下,我想获取到select中,option中的选项值和value值,要怎么写代码呢?
                  <form  class="layui-form">
                  				<div class="layui-form-item">
                  					<label class="layui-form-label">分类</label>
                  					<div class="layui-input-inline">
                  						<select lay-filter="fenlei" class="ffff">
                  							<option value ="">选择</option>
                  							<option value="1" >生活</option>
                  							<option value="2" >金融</option>
                  						</select>
                  					</div>
                  
                  				</div>
                  </form>

                  代码如下

                  form.on('select(name)',function(data){
                   var  title = data.elem[data.elem.selectedIndex].text
                  //data.value可以获取到value值,也就是上面的1或者2
                  //data.elem[data.elem.selectedIndex].text 获取的是生活、金融选项值
                  })
                  上一篇:layui获取table中select值的办法 下一篇:没有了

                  相关文章

                  最新文章

                    <bdo id='2AgXQ'></bdo><ul id='2AgXQ'></ul>

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

                    <legend id='2AgXQ'><style id='2AgXQ'><dir id='2AgXQ'><q id='2AgXQ'></q></dir></style></legend>

                    <small id='2AgXQ'></small><noframes id='2AgXQ'>