aspdotnet-suresh offers articles and tutorials,csharp dot net, articles and tutorials,VB.NET Articles,Gridview articles,code examples of 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Disable Weekend’s in jQuery Datepicker

Nov 17, 2012
Here I will explain how to disable weekend’s in jQuery datepicker.
In previous posts I explained jQuery DatePicker example, Show multiple months in datepicker, Show datepicker on button click and many articles relating to JQuery and datepicker. Now I will explain how to disable weekend’s in jQuery datepicker.

To disable weekend’s in datepicker we need to write the code like this

<script type="text/javascript">
$(function() {
$("#datepicker").datepicker({ beforeShowDay: $.datepicker.noWeekends });
If you want to see it in complete example check below code

<html xmlns="">
<meta charset="utf-8" />
<title>jQuery Datepicker: Disable all weekends</title>
<link rel="stylesheet" href="" />
<script src=""></script>
<script src=""></script>
<script type="text/javascript">
$(function() {
$("#datepicker").datepicker({ beforeShowDay: $.datepicker.noWeekends });
<p>Date: <input type="text" id="datepicker" /></p>

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest,, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email


Pramod Lovete said...

but suresh how can i change dd mm yyyy format in this post it means i want date should like dd/MM/yyyy

Suresh Dasari said...

@Pramod lovete...
check this article

Kkrish Jaiswal said...

Hello Suresh Sir...
How can I disable some days dynamically using this?
In doctors application he will go for tour for next two days, then he dont want to take appointments on those days, then How can disable those two days?

Suresh Dasari said...

@kkrish jaiswal...
Check this article

Give your Valuable Comments

Other Related Posts

© 2015 All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.