author:咔咔
wechat:fangkangfk
'<div class="layui-form-item parent">\n' +
' <label class="layui-form-label">选项:</label>\n' +
' <div class="layui-input-block">\n' +
' <input type="text" name="title[]" style="width: 500px;display: inline-block" placeholder="请输入选项" autocomplete="off" class="layui-input">\n' +
' <a class="layui-btn layui-btn-primary layui-btn-sm del">\n' +
' <i class="layui-icon"></i>\n' +
' </a>'+
' </div>\n' +
' </div>';
// 点击删除
$(document).on('click','.del',function(){
$(this).parents('.parent').remove();
})