I'm new to jquery and would like to start datepicker with focus.
My first textbox is a date field and I have tried to give the box focus with javascript but datepicker won't come up unless I click somewhere else on the page and then give it focus by clicking inside the box.
Is there a way to start datepicker with focus and maybe have the widget start immediately when the page loads then drop focus when the user leaves the box?
$( "#date" ).datepicker({
dateFormat: "mm-dd-yy"
});