Hello i have a jquery ui date time picker.
And now i want it on a input field showed on page load so it must already been showed without click or focus.
And i also want to make the input field type hidden.
Link to website: HERE
someone any ideas ? i already search this site and google but cant find anything.
Jquery code
$.datepicker.setDefaults( $.datepicker.regional[ "nl" ] );
$('#date').datetimepicker({
numberOfMonths: 1,
showButtonPanel: false,
dateFormat : 'dd/mm/yy',
minDate: 0,
maxDate: 30,
timeText: 'Tijd',
hourText: 'Uur',
minuteText: 'Minuten',
secondText: 'Seconden'
});
HTML code
<label id="test">test</label><input type="text" value="" id="date" />
You could call the
$('#date').datepicker('show');function after you’ve initialized the datepicker, although I could have sworn there was an option for that.