将日期设置为文本框的jquery日期选择器 [英] Set date to jquery date picker for textbox
本文介绍了将日期设置为文本框的jquery日期选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在编辑案例中将日期设置为Datepicker文本框。
I下面写了代码创建
$('#txtDate')。datepicker({
格式:dd / mm / yyyy,
autoclose: true,
todayHighlight:true
});
相同的文本框,我也使用编辑案例,我需要将数据库日期设置为文本框。
谢谢。
我有什么试过:
$('#txtDate')。val(日期);
$('#txtDate')。Datepicker('setdate',date)
解决方案
(' #txtDate')。datepicker({
格式:dd / mm / yyyy,
autoclose:true,
todayHighlight:true
});
相同的文本框,我也使用编辑案例,我需要将数据库日期设置为文本框。
谢谢。
我尝试过:
( '#txtDate')VAL(日期);
( '#txtDate')日期选择器( setdate',date)
Hi,
How to set date to Datepicker text box in edit case.
I wrote below code for create
$('#txtDate').datepicker({ format: "dd/mm/yyyy", autoclose: true, todayHighlight: true });
same text box, i am using edit case also, i need to set database date to textbox.
Thank you.
What I have tried:
$('#txtDate').val(Date); $('#txtDate').Datepicker('setdate', date)
解决方案
('#txtDate').datepicker({ format: "dd/mm/yyyy", autoclose: true, todayHighlight: true });
same text box, i am using edit case also, i need to set database date to textbox.
Thank you.
What I have tried:
('#txtDate').val(Date);
('#txtDate').Datepicker('setdate', date)
这篇关于将日期设置为文本框的jquery日期选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文