Set initial value in datepicker with jquery?
This simple example works for me… HTML <input type=”text” id=”datepicker”> JavaScript var $datepicker = $(‘#datepicker’); $datepicker.datepicker(); $datepicker.datepicker(‘setDate’, new Date()); I was able to create this by simply looking @ the manual and reading the explanation of setDate: .datepicker( “setDate” , date ) Sets the current date for the datepicker. The new date may be a … Read more