Reputation: 1364
I need your help,
I just added the buttonpane to my Date Picker, however it seems that when I click on the 'Today' button, what should happen is that it should select the present date and also put its value into the input box.
What am I doing wrong?
$("#date1").datepicker({
showOn: 'button',
buttonImage: 'images/cal.png',
showButtonPanel: true,
buttonImageOnly: true,
changeMonth: true,
changeYear: true,
onSelect: function() {
if ($(this).hasClass('invalid') == true) { $(this).removeClass('invalid') }
$(this).change();
}
});//end of datepicker
The HTML is as follows:
<input type="text" id="date1">
Upvotes: 1
Views: 5381