We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
` var active = { addInput: function () {
var index = jq('#enumDiv select').length; var newInput = ' <div class="layui-inline">\n' + ' <label class="layui-form-label"></label>\n' + ' <div class="layui-input-inline" style="width: 10%;">\n' + ' <input type="text" name="enumName" placeholder="名称" autocomplete="off" class="layui-input">\n' + ' </div>\n' + ' <div class="layui-input-inline" style="width: 15%;">\n' + ' <input type="text" name="enumValue" placeholder="枚举值" autocomplete="off" class="layui-input">\n' + ' </div>\n' + ' <div class="layui-input-inline" style="width: 40%;">\n' + ' <select name="enumCity" xm-select="selectEnumCity' + index + '"id="selectEnumCity' + index + '" xm-select-show-count="3"\n' + ' xm-select-search="" xm-select-search-type="dl">\n' + ' </select>\n' + ' </div>\n' + ' <div class="layui-input-inline" style="width: 10%">\n' + ' <input type="text" name="enumSort" placeholder="排序" autocomplete="off" class="layui-input">\n' + ' </div>\n' + ' <div class="layui-input-inline" style="width: 5%">\n' + ' <input type="button" value="删除" data-method="delInput" class="layui-btn layui-btn-danger">\n' + ' </div>\n' + ' </div>'; jq('#enumDiv').append(newInput); //formSelects.init(newInput) formSelects.render(); //formSelects.config('selectEnumCity' + index, {}, false); //formSelects.btns('selectEnumCity' + index, ['remove']); //formSelects.value('selectEnumCity' + index,[1]); //formSelects.render('selectEnumCity' + index); }, delInput: function (othis) { othis.parents('.layui-inline').remove(); } }; //动态增加、删除枚举框 jq('#enumDiv').on('click', '.layui-btn', function () { var othis = jq(this), method = othis.data('method'); active[method].call(this, othis); });`
当我进行button动态增加多选框的,时候formSelect事件都失效了,请问该如何解决呢?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
`
var active = {
addInput: function () {
当我进行button动态增加多选框的,时候formSelect事件都失效了,请问该如何解决呢?
The text was updated successfully, but these errors were encountered: