easyui ComboBox设置默认值
2017-06-03 16:02
387 查看
学年:
<!-- 修改默认日期显示 -->
<input class="easyui-combobox" id="oa_dutyMg_daily_category_index_term_form_year"
name="entity.schoolYear" data-options="editable:false" />
<script type="text/javascript">
$(function(){
$('#oa_dutyMg_daily_category_index_term_form_year').combobox({
url:'${pageContext.request.contextPath}/dutyMg/daily/category/index.do?schoolYearList=',
valueField:'schoolYear',
textField:'schoolYearText',
onLoadSuccess: function (data) {
if (data) {
var myDate = new Date();
$("#oa_dutyMg_daily_category_index_term_form_year").combobox('select',myDate.getFullYear()-1);
}
}
})
})
</script>
<!-- 修改默认日期显示 -->
<input class="easyui-combobox" id="oa_dutyMg_daily_category_index_term_form_year"
name="entity.schoolYear" data-options="editable:false" />
<script type="text/javascript">
$(function(){
$('#oa_dutyMg_daily_category_index_term_form_year').combobox({
url:'${pageContext.request.contextPath}/dutyMg/daily/category/index.do?schoolYearList=',
valueField:'schoolYear',
textField:'schoolYearText',
onLoadSuccess: function (data) {
if (data) {
var myDate = new Date();
$("#oa_dutyMg_daily_category_index_term_form_year").combobox('select',myDate.getFullYear()-1);
}
}
})
})
</script>
相关文章推荐
- EASYUI设置combobox的默认值
- EasyUI Combobox 设置默认值
- easyui中combobox设置默认值的方法
- 怎么设置easyui 的 combobox的默认值
- EasyUI Combobox设置默认值 获取text的方法
- easyui combobox动态加载数据和设置默认值
- easyui combobox设置默认值 获取text
- Easyui combobox 设置默认值
- 获得DataGridView里ComboBox选中的值以及设置默认值
- 选择设置comboBox默认值
- easyui combobox input 下拉框 加入默认值
- easyui-combobox联动及默认值
- easyui设置combobox高度
- 【easyui】combobox根据后台返回的json设置value
- ExtJS4给Combobox设置列表中的默认值示例
- wpf ComboBox设置默认值
- 设置DataGridView 列类型为 DataGridViewComboBoxColumn 的默认值
- Easyui中combogrid设置默认值
- Ext.form.ComboBox 设置默认值 value 和text都有对应值
- Extjs combobox设置默认值