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 Create Payment Link in Stripe using API in Laravel 10
How to Create Payment Link in...

In today's digital age, the ability to facilitate online payments efficiently is crucial for businesses and develope...

Read More


Laravel 8 Mobile Number OTP Authentication using Firebase
Laravel 8 Mobile Number OTP Au...

Hello All, In this tutorial i will show you laravel 8 mobile number OTP authentication using firebase, There are many...

Read More


How To Check RAM And CPU Usage In Laravel
How To Check RAM And CPU Usage...

In this tutorial, I will show you how to check RAM and CPU usage in laravel in ubuntu OS. Many times we requir...

Read More


Laravel 10 Multiple Image Upload Example
Laravel 10 Multiple Image Uplo...

In this article, we will see laravel 10 multiple image examples. Here, we will learn about how to upload multiple i...

Read More