Pass selected date values from datepicker to php
问题 I found similar questions on here but most of the solutions don't work for me. I have a form with a datepicker and I want to pass the selected date to my php file but it doesn't seem to work. My html is something like this: <form name="myForm" action="createevent.php" onsubmit="return validateForm()" method="get"> <p>Date<input type="text" id="mydate" /></p> <input type="submit" name="submit" value="Submit" /> </form> Javascript: $(function() { $.datepicker.setDefaults($.extend($.datepicker