easyui datatimebox 取值和赋值


1.取值


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>

效果如图:

easyui datetimebox 获得值

 

2.赋值

  dateTimeBox

    $('#StartDate').val(startTime);
dateBox $(
'#StartDate').datebox('setValue', startTime);
combobox $(
'#dept').combobox('setValue',depment);//设值 $('#dept').combobox('setText',depment);//设置文本值

Text $('#name').val(name);

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM