I want to get the date from datepicker whenever user choose the date in jQuery UI datepicker and click the button on the form.
我需要知道他们 Select 的日期,月份和年份.如何从jQuery UI获取日期表单?
I want to get the date from datepicker whenever user choose the date in jQuery UI datepicker and click the button on the form.
我需要知道他们 Select 的日期,月份和年份.如何从jQuery UI获取日期表单?
Use
var jsDate = $('#your_datepicker_id').datepicker('getDate');
if (jsDate !== null) { // if any date selected in datepicker
jsDate instanceof Date; // -> true
jsDate.getDate();
jsDate.getMonth();
jsDate.getFullYear();
}