How To Disable Specific Dates In jQuery Datepicker

Websolutionstuff | Jun-16-2022 | Categories : Laravel PHP jQuery

In this tutorial, we will see how to disable specific dates in jquery datepicker. The jQuery UI Datepicker is a highly configurable plugin that adds datepicker functionality to your pages. You can customize the date format and language, restrict the selectable date ranges and add in buttons and other navigation options easily.

So, let's see disable specific dates in datepicker, jquery datepicker disable specific dates, how to disable particular date in datepicker using jquery, jquery UI datepicker disable dates, disable dates in datepicker jquery UI, jquery UI datepicker disable specific dates, how to disable date in datepicker.


<!DOCTYPE html>
    <title>How To Disable Specific Dates In jQuery Datepicker - Websolutionstuff</title>
    <link href="" rel="stylesheet" />
    <script src=""></script>
    <script src=""></script>
    <style type="text/css">
            border-radius: 5px;
            padding:50px 20px;
            margin:30px auto;
            border:2px solid #bbb;
            text-align: center;
            text-align: center;
            margin-top: 100px;
            font-weight: 600;
    <h2>How To Disable Specific Dates In jQuery Datepicker - Websolutionstuff</h2>
    <div class="container">
        <label>Select Date :</label>
        <input type='text' class='date'>
<script type="text/javascript">
    var array = ["01-06-2022","02-06-2022","23-06-2022","24-06-2022"]
        beforeShowDay: function(date){
            var string = jQuery.datepicker.formatDate('dd-mm-yy', date);
            return [ array.indexOf(string) == -1 ]






You might also like:

Recommended Post
Featured Post
How To Add Column In Existing Table In Laravel 10
How To Add Column In Existing...

In this article, we will see how to add a column to the existing table in laravel 10 migration. Here, we will learn...

Read More


How To Change Month Name In jQuery Datepicker
How To Change Month Name In jQ...

In this article, we will see how to change the month name in jquery datepicker. In the date picker, we can change t...

Read More


How to Download File on the FTP Server Using PHP
How to Download File on the FT...

Today we will see how to download file on the ftp server using php. Many time we have requirment to retrieve file from t...

Read More


Laravel 8 Toastr Notifications Example
Laravel 8 Toastr Notifications...

Today, I will show you Laravel 8 Toastr Notifications Example. There are many types of notifications availa...

Read More