私は jQuery を初めて使用するので、プロ ユーザーに簡単な質問があります。
- 日付ピッカーから日付を画面に出力するにはどうすればよいですか?
- datepicker からの日付を変数に割り当てて、後でその日付を mySQL データベース操作で使用できるようにする方法。
どんな助けでも感謝します。
$(function() {
$("#from").datepicker({
defaultDate: "+1w",
changeMonth: true,
changeYear: true,
numberOfMonths: 1,
dateFormat: "yy/mm/dd",
showAnim: 'clip',
onClose: function(selectedDate) {
$("#to").datepicker("option", "minDate", selectedDate);
}
});
$("#to").datepicker({
defaultDate: "+1w",
changeMonth: true,
changeYear: true,
numberOfMonths: 1, maxDate: 0,
dateFormat: "yy/mm/dd",
showAnim: 'clip',
onClose: function(selectedDate) {
$("#from").datepicker("option", "maxDate", selectedDate);
}
});
});