1. datebox设置默认时间 $(document).ready(function() { $("#start").datebox("setValue",myformatter( new Date())); $("#end").datebox("setValue",myformatter( new Date())); /* $(".datebox :text").attr("readonly","readonly"); */ }); function myformatter(date){ var y = date.getFullYear(); var m = date.getMonth()+1; var d = date.getDate(); return y+‘-‘+(m<10?(‘0‘+m):m)+‘-‘+(d<10?(‘0‘+d):d); }
class="easyui-datetimebox" 带时分秒
供货商:<input type="text" id="from_customer_id" style="width:70px;height:20px;" /> $(‘#from_customer_id‘).combobox({ url:‘${ctx}/admin/repo_tool/listSelect‘, valueField:‘id‘, textField:‘customername‘, panelHeight:‘100‘, editable:false, }); Controller方法加头:@RequestMapping("/listSelect") @ResponseBody 如果想获取下拉框的值 用这个: .combobox("getValue");
background-color:rgb(235, 235, 228)"
onkeyup="value=value.replace(/\s/g,‘‘)"
onkeyup="this.value=this.value.replace(/\D/g,‘‘)" onafterpaste="this.value=this.value.replace(/\D/g,‘‘)"
style=‘background-color:#ccc;border-bottom:2px solid #ccc‘
$(‘#comboboxlist‘).combobox(‘getValue‘);
原文:http://www.cnblogs.com/weiloong/p/4871188.html