Using the jQuery UI, how can I get the value of the date picker in the http post when it's used like this within a form:
<div id="datepicker"></div>
$('#datepicker').datepicker({
onSelect: function(dateText, inst) {
$("input[name='something']").val(dateText);
}
});
Here's a fiddle: http://jsfiddle.net/jensbits/9hbmy/338/
Are you looking for this.
$("#datepicker").datepicker("getDate");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With