Loading

easyui combobox 取值

easyui combobox 取值

 

var zhudaoci = $.trim($('#spanZhudaociId').combobox('getValue'));

学习了:http://blog.csdn.net/world_the_begin/article/details/48782405

    //赋值(多选下拉框选中)           

            $('#tvType').combobox('setValues',值.split(','));  

            //取值(多选下拉框选中)

           $("#originalCountry").combobox('getValues');

            //取值(单选下拉框选中)

            //valueField和textField同一属性值。$('#programType').combobox('getValue')获取的值为textField值。

 

          //  默认选中(单选下拉框)

          $('#upType').combobox('select',‘值’);

posted @ 2017-11-18 14:18  stono  阅读(363)  评论(0编辑  收藏  举报