The default date for jQuery's datepicker is the current date, but I need it to be the pre-populated date from my #start_date input field.
This is where I'm at now but it doesn't work.
var start_date = $('#start_date').val();
$('.datepicker').datepicker("option", "defaultDate", start_date);
<input type="text" id="start_date" name="start_date" class="datepicker form-control col-sm-6" placeholder="Start" value="<?php (!empty($row['start_date'])?$row['start_date']:'');?>>
The default date for jQuery's datepicker is the current datethis is not the case. Assuming the value of the input field is in a format which can be parsed as aDate()that is what will be used as the default value. If it isn't a validDate(), then it defaults to today. - Rory McCrossan$row['start_date']? - Barmar