1. 程式人生 > >【Layui】獲取下拉框的值

【Layui】獲取下拉框的值

author:咔咔

wechat:fangkangfk

 

html:

js:select裡邊的值是下拉框的lay-filter的value值

 

    layui.use(['laypage', 'layer','form'], function() {
        var laypage = layui.laypage
            , layer = layui.layer,
            form = layui.form;

        form.on('select(type_mid)', function(data){

            console.log(data.value)

        })


    });