layui.use(['form', 'layer'], function () { var form = layui.form(); var layer = layui.layer; form.on('select(lay-filter)', function (data) { //触发内容 }); }); lay-filter为下拉框lay-filter属性
后台代码: public class DropController : Controller { // GET: Drop public ActionResult Index() { List<Province> list = new List<Province> { new Province{ Id=1,name="山西省"}, new Province{ Id=1,name="广东省"}, new Province{ Id=1,name=