Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Enable Users to Select only certain days</title>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
    type="text/javascript"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"
    type="text/javascript"></script>   
  <style>
    
.ui-datepicker {
   
}
    </style>
<script language="javascript" type="text/javascript">
  $(document).ready(function() {
    $("#datepick").datepicker({ beforeShowDay:
       function(dt) {
         return [dt.getDay() == 0 || dt.getDay() == 6, ""];
       }
                              });
  });       
</script>
</head>
<body>
    <div>
        <input id="datepick" type="text" />        
    </div>
</body>
</html>
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers