Title: in $(function(){} ) combobox method can't call? Post by: cdtuql on June 18, 2017, 08:49:34 PM I have a page that use combobox ,like this:
<input id="ICCardManagement_deposit_department" name="depNo" class="easyui-combobox" data-options="valueField:'depNo',textField:'depName',url:'${pageContext.request.contextPath}/department/getReallyIdValueList'" /> but in the <javascript></javascript> I use the $(function(){ var icinfo=getCardInfoNew(); $('#ICCardManagement_deposit_department').combobox('setValue',icinfo.jqzbh); }); but the ICCardManagement_deposit_department did not play up, the jeasyui do not supply the function? Title: Re: in $(function(){} ) combobox method can't call? Post by: jarry on June 18, 2017, 11:58:19 PM To initialize the combobox value, you just need to set the 'value' property.
Code: <input id="ICCardManagement_deposit_department" name="depNo" class="easyui-combobox" data-options=" Title: Re: in $(function(){} ) combobox method can't call? Post by: cdtuql on June 19, 2017, 11:44:12 PM thanks jarry
|