Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,now my application is bank applistion.so i want to set holiday date after selecting...that date will be disable after selecting and change the back color...so send be feedback....fast

What I have tried:

i want to disable particular date after selecting and that particular date back color will be disable in datetimepickers
Posted
Updated 16-Mar-16 21:25pm

1 solution

i am not getting excatly what u want but try this code it help full to u

<script type="text/javascript">
$(document).ready(function () {
$('#fromdate').datepicker({
maxDate: '0',
changeYear: true,
yearRange: "-15:+0",
dateFormat: 'yy-mm-dd',
onSelect: function (selected) {
$("#todate").datepicker("option", "minDate", selected)
}

});

$('#todate').datepicker({
maxDate: '0',
changeYear: true,
yearRange: "-15:+0",
dateFormat: 'yy-mm-dd',
onSelect: function (selected) {
$("#fromdate").datepicker("option", "maxDate", selected)
}

});


});
</script>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900