我有一个datepicker附加到这样的输入
<p>Date de signature :<input id="C42" type="text" runat="server" style="width: 100%" class="dt" /></p>
我的javascript,我有两个与datepicker相关的函数
function AppInit() {
//On initialise le DatePicker pour chaque classe "
我试图在我的jquery ui datepicker中设置一个初始值。我尝试了几种不同的方法,但似乎没有显示日期,它是空的。
var idag = new Date();
$("#txtFrom").datepicker("setDate", idag - 2);
$("#txtTom").datepicker("setDate", idag);
$("#txtFrom").datepicker("refresh");
$("#txtTom").datepicker("ref
$(document).ready(function(){
$('#data_nasterii').datepicker($.datepicker.regional['ro']); // romanian language
$('#data_nasterii').datepicker('option', 'changeMonth', true); // dropdown with month
$('#data_nasterii').datepicker('option',
这似乎合乎逻辑,应该有一些简单的方法来检查哪个DatePicker对象先出现,但我找不到done。
// so if you had two objects
final DatePicker start_datepicker = (DatePicker)findViewById(R.id.DatePickerStart);
final DatePicker end_datepicker = (DatePicker)findViewById(R.id.DatePickerEnd);
// I was thinking something along the lines of:
if (end_