date picker in cashbooklisting screen

This commit is contained in:
venbatechnologies@gmail.com 2018-06-29 17:26:02 +05:30
parent 5ad352e1c4
commit bab8d8ec9a

View File

@ -260,5 +260,30 @@ function inex(input){
}
});
}
$( function() {
//var dateFormat = "mm/dd/yy",
from = $( "#min-date" )
.datepicker({
dateFormat: "dd-mm-yy",
defaultDate: "+0d",
changeMonth: true,
//numberOfMonths: 1
})
.on( "change", function() {
to.datepicker("option", "minDate", getDate( this ) );
}),
to = $( "#max-date" ).datepicker({
dateFormat: "dd-mm-yy",
defaultDate: "+0d",
changeMonth: true,
//numberOfMonths: 1
})
.on( "change", function() {
from.datepicker( "option", "maxDate", getDate( this ) );
});
} );
</script>