The default selection of the first item, add please select, value problem
<inputclass="Easyui-combobox"Id="DDLWHS"Name="DDLWHS"/>//Combox Default selection of the first$ (function () {$ ('#ddlWHS'). ComboBox ({URL:".. /.. /HR/ATTTYPE/LIST_ATTTYPE.ASHX?TYPE=BINDDDL", Valuefield:'Workinghour_begintime', TextField:'Workinghour_name', Editable:false, Onloadsuccess:function (data) {varData = $ ('#ddlWHS'). ComboBox ('GetData'); if(Data.length >0) { $("#ddlWHS"). ComboBox ('Select', data[0]. Workinghour_begintime); } } }); }); //combox Please select$ (function () {$ ('#ddlWHS'). ComboBox ({URL:".. /.. /HR/ATTTYPE/LIST_ATTTYPE.ASHX?TYPE=BINDDDL", Valuefield:'Workinghour_begintime', TextField:'Workinghour_name', Editable:false, //returns the filtered data to be displayedloadfilter:function (data) {varo = [{'Workinghour_begintime':'0','Workinghour_name':'--Please choose- -'}]; returno.concat (data); }, //triggered when remote data load is successfulonloadsuccess:function (data) {varData = $ ('#ddlWHS'). ComboBox ('GetData'); if(Data.length >0) { $("#ddlWHS"). ComboBox ('Select', data[0]. Workinghour_begintime); }}, Onselect:function (record) { //Get ValuesAlert ($ ("#ddlWHS"). ComboBox ("getValues")); //Get textAlert ($ ("#ddlWHS"). ComboBox ("GetText")); } }); });
Easyui ComboBox combo Box