layui 下拉框取值

    layui.use('form', function () {
        var form = layui.form;
        form.on('select(Status)', function (data) {
            console.log(data);
            console.log(data.value);
            console.log(data.elem[data.elem.selectedIndex].text);

        });
    });

 

posted @ 2018-07-17 09:27  enych  阅读(400)  评论(0编辑  收藏  举报