Disable specific days in jQuery Datepicker

I had already posted about,

1. Disable Weekends in jQuery DatePicker
2. Enable only weekends in jQuery Datepicker

Now, one of my colleague asked me that I want to disable only Monday and Wednesday. How can I? Here is how you can achieve it. In this case, I have disable Monday(1) and Wednesday(3) but as per your need you can disable specific days.

  $('#<%=txtDate1.ClientID%>').datepicker({ beforeShowDay:
       return [dt.getDay() == 1 || dt.getDay() == 3 ? false : true];

And here is the textbox.

<asp:TextBox ID="txtDate1" runat="server"></asp:TextBox>
See live Demo and Code.

Feel free to contact me for any help related to jQuery. I will gladly help you.

Responsive Menu
Add more content here...