I have a form with 3 input fields, which use the jQuery DatePicker plugin. The fields are #startdate, #enddate, and #raindate. I'm using DatePicker's Event Function to work together #startdate and #enddate, so #enddate can not be preceded by #startdate. Those two areas are needed, by the way. #Reded field is not required, however, if the user wants to add a date here, then I want it to happen after the selected date in #endend. How do I do this? To get the initial date and closing, I have the code to work together:
Yes an option is called minDate and it also supports a lot of options.
To get all available options -
Go to the Options tab.
The above code can be obtained by following -
$ ('# raindate') . Datepicker ({dateFormat: "dd m yy", first show: custom range, // your other configuration.}); Function custombank (input) {if (input.id == "raindate") {dateMin = new date (); If ($ ("# enddate") datepicker ("getDate") = null) {dateMin = $ ("# enddate"). Datepicker ("getDate"); DateMin.setDate (dateMin.getDate (+ 1); }} Return {minute date: datein}; }
Comments
Post a Comment