ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Disable Enable Button for specific Date in jQuery<p>Hi <a class="username" rel="sathya2496"> sathya2496</a>,</p> <p>Refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <div class="demo_block"> <pre class="brush: html">&lt;div&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(function () { var thisDay = new Date().getDate(); if (thisDay &gt;= 15 &amp;&amp; thisDay &lt;= 25) { $(&#34;#add&#34;).attr(&#34;disabled&#34;, true); printAlert(); } else { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&#34;#add&#34;).attr(&#34;disabled&#34;, false); } }); function printAlert() { window.alert(&#39;We are not accepting entries right now.&#39;); } &lt;/script&gt; &lt;button id=&#34;add&#34;&gt;Button&lt;/button&gt; &lt;/div&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/144134/Disable-Enable-Button-for-specific-Date-in-jQuery/https://www.aspforums.net:443/Threads/144134/Disable-Enable-Button-for-specific-Date-in-jQuery/Wed, 17 Jul 2019 03:04:16 GMT