Question : How do I block out days in Jquery calendar

I am using the code attached to include a jquery calendar in my clients app.  The client wants to block out the next two weeks (10 days)so users can't try to place rush jobs.  Can I do this without pulling the jquery code into the web space?  If so, who do I do it?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<!--<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/excite-bike/jquery-ui.css" type="text/css" rel="Stylesheet" />-->
<link href="css/excite-bike/jquery-ui.css" type="text/css" rel="Stylesheet" />


<script type="text/javascript">
//google.load('jquery', '1.3.2');
//google.load("jqueryui", "1.7.2");

	$(function() {
		$("#Q_106").datepicker();
        $("#Q_63").datepicker();
		$("#Q_158").datepicker();
	});
	
	</script>

Answer : How do I block out days in Jquery calendar

    From the documentation:
Set a minimum selectable date via a Date object or as a string in the current dateFormat,  or a number of days from today (e.g. +7) or a string of values and  periods ('y' for years, 'm' for months, 'w' for weeks, 'd' for days,  e.g. '-1y -1m'), or null for no limit.          

Initialize a datepicker with the minDate option specified.  $( ".selector" ).datepicker({ minDate: new Date(2007, 1 - 1, 1) });


So in your case:
$("#Q_106").datepicker({ minDate: new Date(+14) });

Random Solutions  
 
programming4us programming4us