<script type="text/javascript"> $(".date").datepicker({ showOn: 'focus', showOtherMonths: true, selectOtherMonths: true, flat:true, mode: 'multiple', calendars: 1, changeMonth: true, changeYear: true, yearRange: '1900:2023', dateFormat: "dd/m/yy", showButtonPanel: true, currentText: "", showButtonPanel:true, currentText: "This Month", onChangeMonthYear: function (year, month, inst) { $(this).val($.datepicker.formatDate('dd/m/yy', new Date(year, month , 1))); }, onClose: function(dateText, inst) { var month = $(".ui-datepicker-month :selected").val(); var year = $(".ui-datepicker-year :selected").val(); var date = $(".ui-datepicker-date :selected").val(); // $(this).val($.datepicker.formatDate('dd/m/yy', new Date(year,month, 1))); } }).focus(function () { $(".ui-datepicker-calendar").show(); $(".ui-datepicker-date").show(); }).after( $("<a href='java<!-- no -->script: void(0);'>clear</a>").click(function() { $(this).prev().val(''); }) ); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)