11-Apr-2023
.
Admin
Hello Friends,
In this post, I will teach you how to disable dates after today datepikcker in jquery ui. disable date for today next date using datepicker in jquery ui.
Here I will give you full example for disable dates after today datepikcker in jquery ui.
Example
<!DOCTYPE html>
<html>
<head>
<title>jquery ui datepicker disable dates after today</title>
</head>
<link href="http://code.jquery.com/ui/1.9.2/themes/smoothness/jquery-ui.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<body>
<h2>JQuery UI DatePicker Disable Dates After Today</h2>
<p>Date: <input type="text" id="datepicker" /></p>
<script type="text/javascript">
$(function() {
$( "#datepicker" ).datepicker({ maxDate: new Date() });
});
</script>
</body>
</html>
It will help you...
#Jqury UI