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

      2. <small id='qOJG9'></small><noframes id='qOJG9'>

          <bdo id='qOJG9'></bdo><ul id='qOJG9'></ul>
        <tfoot id='qOJG9'></tfoot>
      3. <legend id='qOJG9'><style id='qOJG9'><dir id='qOJG9'><q id='qOJG9'></q></dir></style></legend>

        layui下拉多选框xm-select.js插件的使用

        创建容器 xm-select-demo,选择容器 隐藏赋值取值表单; div id="selected_box" class="layui-input-inline xm-select-demo" style="width:150px;"input type="hidden" id="poi_category_id"/div 异步获取代码 //获取分类; $.ajax({ type: 'get', url: "./ap

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

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

            • <legend id='kjMy3'><style id='kjMy3'><dir id='kjMy3'><q id='kjMy3'></q></dir></style></legend>
              • <bdo id='kjMy3'></bdo><ul id='kjMy3'></ul>

                    <tbody id='kjMy3'></tbody>
                  <tfoot id='kjMy3'></tfoot>
                1. 创建容器

                  xm-select-demo,选择容器
                  隐藏赋值取值表单;
                  <div id="selected_box" class="layui-input-inline xm-select-demo" style="width:150px;">
                  <input type="hidden" id="poi_category_id"></div>

                  异步获取代码

                  //获取分类;
                          $.ajax({
                              type: 'get',
                              url: "./api/api.php?act=getCategory&token=3cab7ce4142608c0f40c785b5ab5ca24",
                              data: {},
                              dataType: "json",
                              success: function (res) {
                                  var data = [];
                                  for (var i = 0; i < res.data.length; i++) {
                                      data.push({name: res.data[i].category_name, value: res.data[i].category_id});
                                  }
                          xmSelect.render({
                                      el: '#selected_box',
                                      theme: {
                                          color: 'rgba(255, 87, 34,0.8)',
                                      },
                                      language: 'zn',
                                      filterable:true,
                                      data: data,
                                      on: function(data){
                                          var selectArr = data.arr;
                                          var seachArr = [];
                                          for (var j = 0; j < selectArr.length; j++) {
                                              seachArr.push(selectArr[j].value)
                                          }
                                          $("#poi_category_id").val(seachArr.toString());
                                      }
                                  })
                              },
                              error: function (err) {
                                  console.log(err)
                              }
                          });

                  赋值表单

                  $("#poi_category_id").val(seachArr.toString());
                   
                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  可以根据table的数据实现判断toolbar按钮的显示状态和情况 script type="text/html" id="barDemo" {{# if(d.status ==0){ }} a class="layui-btn layui-btn-mini" lay-event="examine"查看/a a class="layui-btn layui-btn-mini" lay-event="edit"编辑/a a cl
                  layui tree实现获取子节点所有值的实例代码,具体代码如下: layui.use(['tree', 'form'], function(){ var tree = layui.tree; var form = layui.form; // 模拟数据 var data = [ { name: '节点1', id: 1, children: [ {name: '节点1-1', id: 11, children: [
                  layui tree 点击标题选中加色,具体实例代码如下: layui.use('tree', function () { var tree = layui.tree; //渲染 stree = tree.render({ elem: '#demo2' //绑定元素 , data: treeService , showCheckbox: true , click: function (obj) { //节点选中状态
                  html代码部分: div id="menuTree" class="demo-tree-more"/div js组件渲染代码 tree.render({ elem: '#menuTree', data: getData(), //ajax获取data数据 showCheckbox: true, //是否显示复选 id: 'demoId' }); 点击全部展开和全部折叠按钮事件 //menuTree换
                  parent.layer.open({ //在父窗口打开 type: 2, //type必须为2,否则打印时候获取不到iframe btn: ['打印','关闭'], title: parent.bigOpenTitle + parent.bigOpenContent + "div class='big-open-title'表单/div", offset: 'auto', skin: 'big-open', area:
                  layui使用tips鼠标悬停提示语的实例代码,具体代码如下,有三种方式: !DOCTYPE htmlhtml lang="zh" head meta charset="UTF-8" title测试-liu 劉/title/headscript src="https://cdn.staticfile.org/layui/2.7.6/layui.js"/scriptscript src="https://code.j
                    <tbody id='WnkSz'></tbody>
                    • <bdo id='WnkSz'></bdo><ul id='WnkSz'></ul>

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

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

                          1. <tfoot id='WnkSz'></tfoot>