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',‘值’);

原文地址:https://www.cnblogs.com/stono/p/7856574.html