Disable Enable Button for specific Date in jQuery

Last Reply 6 months ago By pandeyism

Posted 6 months ago

I want to disable the button for Specific dates only in jquery

<!DOCTYPE html>
<html lang="en">
        <meta charset="UTF-8" />
        <title>DOM Example</title>
        <script src="jquery-3.1.1.min.js"></script>
            var thisDay = new Date().getDate();  
            function checkButton()
                if (thisDay>=15 && thisDay<=16)) 
                    $("#add").prop("disabled", true);

            function printAlert() {
                window.alert('We are not accepting entries right now.');
        <p id="firstParagraph">This is the first paragraph</p>
        <button id="add">Button</button>        


This question does not have replies that have been liked.