Response title
This is preview!




- var toDate = new Date(endDate);
- var newToDate = toDate.setDate(toDate.getDate() - 30);
- $('#datepicker').datepicker({
- showOn: "both",
- maxDate: new Date(newToDate),
- showAnim: "slide",
- buttonImageOnly: true,
- dateFormat: "yy-mm-dd",
- onSelect: function(dateTxt, inst) {
- $('#<DateForm').submit();
- },
- buttonText: ""
- });
- $('#datepicker').datepicker("setDate", startDate);
© 2012 jQuery Foundation
Sponsored by
and others.
