<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js" type="text/javascript"></script>
<style>
* {margin:0;padding:0;}
html, body
{
font-family: Arial;
font-size: .95em;
height: 100%;
width: 100%;
border: 0;
padding: 0;
margin: 0;
line-height:1em;
font-weight:normal;
}
.checked {border:solid 2px red;}
</style>
</head>
</head>
<body>
<input type="date" id="thisDate" />
<script type="text/javascript">
$(document).ready(function(){
$("#thisDate").datepicker({
beforeShowDay: function(d){
var dy = d.getDay();
if(dy == 0 || dy == 1) {
return[false,"closed"]
} else {
return[true,""]
}
}
});
});
</script>
</body>
</html>
|