<tfoot id='LyAbs'></tfoot>

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

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

        layui获取select下面的选项值和value值

        时间:2023-10-08
          <bdo id='qPFLu'></bdo><ul id='qPFLu'></ul>

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

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

                1. <tfoot id='qPFLu'></tfoot><legend id='qPFLu'><style id='qPFLu'><dir id='qPFLu'><q id='qPFLu'></q></dir></style></legend>

                    <tbody id='qPFLu'></tbody>
                2. 具体代码如下,我想获取到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 获取的是生活、金融选项值
                  })

                  上一篇:PHP实现递归和引用无限极分类的实例代码 下一篇:没有了

                  相关文章

                  <legend id='Z2Mev'><style id='Z2Mev'><dir id='Z2Mev'><q id='Z2Mev'></q></dir></style></legend>
                3. <tfoot id='Z2Mev'></tfoot>
                4. <small id='Z2Mev'></small><noframes id='Z2Mev'>

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

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