我正在使用Asp .net MVC3。我正在使用一个带有日期选择器图像的文本框,该文本框中填充了日期。当我单击选择日期选择器图像时,弹出的日期选择器必须指出日期在文本框中而不是指向当前日期。为此是否有任何jQuery?
Use the setDate
option :
$('element').datepicker({
defaultDate: '02/02/12'
}).datepicker('setDate', '02/02/12');
Works just fine by default.
See fiddle: http://jsfiddle.net/ymLe2/1/
$('#dated').datepicker({showOn: "button"});
You need to post your code, so as to be able to identify the cause of your problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.