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


AZ-Pramod 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

Unknown 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

Unknown said...

i want disable 2nd,4th saturday and sun day using jquery in C#, please help me

Unknown said...

can i except help from u guys

Unknown said...

Hi how can we merge both disable past date with weekends?

Give your Valuable Comments

Note: Only a member of this blog may post a comment.

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