var time = $('.easyui-datetimebox').datetimebox('getValue');
全部代码如下:
<script type="text/javascript">
function seach(){
var time = $('.easyui-datetimebox').datetimebox('getValue');
alert(time)
}
</script>
</head>
<body>
<input class="easyui-datetimebox">
<input type="button" onclick="seach()" value="点击">
</body>
效果如图:
dateTimeBox
$('#StartDate').val(startTime);
dateBox
$('#StartDate').datebox('setValue', startTime);
combobox
$('#dept').combobox('setValue',depment);//设值
$('#dept').combobox('setText',depment);//设置文本值
Text
$('#name').val(name);