<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: jQuery UI DatePicker:  Disable Specified&#160;Days</title> <atom:link href="http://davidwalsh.name/jquery-datepicker-disable-days/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/jquery-datepicker-disable-days</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Wed, 23 May 2012 04:02:29 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: chris</title><link>http://davidwalsh.name/jquery-datepicker-disable-days#comment-31686</link> <dc:creator>chris</dc:creator> <pubDate>Tue, 17 Apr 2012 10:12:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4673#comment-31686</guid> <description>stupid me.. this code works&lt;code&gt;
function noBefore(date){
if (date &lt; new Date()){
return [false];
}
return [true];
}/* create datepicker &amp; timepicker*/
jQuery(document).ready(function() {
jQuery(&#039;#datepicker&#039;).datepicker({
minDate: new Date(2011, 5, 1),
dateFormat: &#039;dd/mm/yy&#039;,
constrainInput: true,
beforeShowDay: noBefore
});
});
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>stupid me.. this code works</p><p><code><br
/> function noBefore(date){<br
/> if (date &lt; new Date()){<br
/> return [false];<br
/> }<br
/> return [true];<br
/> }</p><p>/* create datepicker &amp; timepicker*/<br
/> jQuery(document).ready(function() {<br
/> jQuery(&#039;#datepicker&#039;).datepicker({<br
/> minDate: new Date(2011, 5, 1),<br
/> dateFormat: &#039;dd/mm/yy&#039;,<br
/> constrainInput: true,<br
/> beforeShowDay: noBefore<br
/> });<br
/> });<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: chris</title><link>http://davidwalsh.name/jquery-datepicker-disable-days#comment-31685</link> <dc:creator>chris</dc:creator> <pubDate>Tue, 17 Apr 2012 09:41:38 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4673#comment-31685</guid> <description>Hi, nice script. Just a question though, you can set a date range but there should be a check if the min date has passed, to change it to current day. Isn&#039;t that right?cheers</description> <content:encoded><![CDATA[<p>Hi, nice script. Just a question though, you can set a date range but there should be a check if the min date has passed, to change it to current day. Isn&#8217;t that right?</p><p>cheers</p> ]]></content:encoded> </item> <item><title>By: Jquery Plugins &#124; Pearltrees</title><link>http://davidwalsh.name/jquery-datepicker-disable-days#comment-30977</link> <dc:creator>Jquery Plugins &#124; Pearltrees</dc:creator> <pubDate>Mon, 12 Mar 2012 14:05:26 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4673#comment-30977</guid> <description>[...] jQuery UI DatePicker: Disable Specified Days One project I&#039;m currently working on requires jQuery. The project also features a datepicker for requesting a visit to their location. jQuery UI&#039;s DatePicker plugin was the natural choice and it does a really nice job. One challenge I encountered was the need to prevent specific days from being picked. Here&#039;s the jQuery JavaScript I used to accomplish that. [...]</description> <content:encoded><![CDATA[<p>[...] jQuery UI DatePicker: Disable Specified Days One project I&#039;m currently working on requires jQuery. The project also features a datepicker for requesting a visit to their location. jQuery UI&#039;s DatePicker plugin was the natural choice and it does a really nice job. One challenge I encountered was the need to prevent specific days from being picked. Here&#039;s the jQuery JavaScript I used to accomplish that. [...]</p> ]]></content:encoded> </item> <item><title>By: Thom</title><link>http://davidwalsh.name/jquery-datepicker-disable-days#comment-28902</link> <dc:creator>Thom</dc:creator> <pubDate>Thu, 02 Feb 2012 16:05:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4673#comment-28902</guid> <description>Thanks a bunch! Your walk-through totally did the trick on a resort-booking application I&#039;m working on!</description> <content:encoded><![CDATA[<p>Thanks a bunch! Your walk-through totally did the trick on a resort-booking application I&#8217;m working on!</p> ]]></content:encoded> </item> <item><title>By: jitesh</title><link>http://davidwalsh.name/jquery-datepicker-disable-days#comment-27875</link> <dc:creator>jitesh</dc:creator> <pubDate>Sat, 10 Dec 2011 09:05:29 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4673#comment-27875</guid> <description>Hi, david can you please tell me how can i change css of specific dates..?</description> <content:encoded><![CDATA[<p>Hi, david can you please tell me how can i change css of specific dates..?</p> ]]></content:encoded> </item> <item><title>By: Gulio</title><link>http://davidwalsh.name/jquery-datepicker-disable-days#comment-27872</link> <dc:creator>Gulio</dc:creator> <pubDate>Fri, 09 Dec 2011 15:26:13 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4673#comment-27872</guid> <description>Fixed already:return [0] ? nationalDays(date) : noWeekend;</description> <content:encoded><![CDATA[<p>Fixed already:</p><p>return [0] ? nationalDays(date) : noWeekend;</p> ]]></content:encoded> </item> <item><title>By: Gulio</title><link>http://davidwalsh.name/jquery-datepicker-disable-days#comment-27871</link> <dc:creator>Gulio</dc:creator> <pubDate>Fri, 09 Dec 2011 15:23:25 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4673#comment-27871</guid> <description>Thanks for this nice code. Is there any simple way to just only disable the disableddays, but keep showing the weekends?Thanks already!</description> <content:encoded><![CDATA[<p>Thanks for this nice code. Is there any simple way to just only disable the disableddays, but keep showing the weekends?</p><p>Thanks already!</p> ]]></content:encoded> </item> <item><title>By: Timur</title><link>http://davidwalsh.name/jquery-datepicker-disable-days#comment-26879</link> <dc:creator>Timur</dc:creator> <pubDate>Tue, 13 Sep 2011 11:17:35 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4673#comment-26879</guid> <description>Damn it David. Is there anything your blog does not have. All the solutions are here. Thank you very much :)</description> <content:encoded><![CDATA[<p>Damn it David. Is there anything your blog does not have. All the solutions are here. Thank you very much :)</p> ]]></content:encoded> </item> <item><title>By: Stefan Gabos</title><link>http://davidwalsh.name/jquery-datepicker-disable-days#comment-24444</link> <dc:creator>Stefan Gabos</dc:creator> <pubDate>Fri, 17 Jun 2011 14:25:08 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4673#comment-24444</guid> <description>See also http://stefangabos.ro/jquery/zebra-datepicker/ where the disabling of dates is much easier using a syntax similar to cron&#039;s</description> <content:encoded><![CDATA[<p>See also <a
href="http://stefangabos.ro/jquery/zebra-datepicker/" rel="nofollow">http://stefangabos.ro/jquery/zebra-datepicker/</a> where the disabling of dates is much easier using a syntax similar to cron&#8217;s</p> ]]></content:encoded> </item> <item><title>By: Virendra Dugar</title><link>http://davidwalsh.name/jquery-datepicker-disable-days#comment-24289</link> <dc:creator>Virendra Dugar</dc:creator> <pubDate>Wed, 01 Jun 2011 05:37:50 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4673#comment-24289</guid> <description>Well, there is a better way to disable only the weekends.&lt;code&gt;
$(function() {
$(&#039;#&#039;).datepicker({
beforeShowDay: $.datepicker.noWeekends
});
});
&lt;/code&gt;http://jquerybyexample.blogspot.com/2010/07/disable-weekends-in-jquery-ui.html</description> <content:encoded><![CDATA[<p>Well, there is a better way to disable only the weekends.</p><p><code><br
/> $(function() {<br
/> $('#').datepicker({<br
/> beforeShowDay: $.datepicker.noWeekends<br
/> });<br
/> });<br
/> </code></p><p><a
href="http://jquerybyexample.blogspot.com/2010/07/disable-weekends-in-jquery-ui.html" rel="nofollow">http://jquerybyexample.blogspot.com/2010/07/disable-weekends-in-jquery-ui.html</a></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/7 queries in 0.008 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-23 04:31:15 -->
