<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<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">
	<channel>
		<title>Gravity Support Forums Topic: Customizing Jquery for Datepicker</title>
		<link>https://legacy.forums.gravityhelp.com/topic/customizing-jquery-for-datepicker</link>
		<description>Gravity Support Forums Topic: Customizing Jquery for Datepicker</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 08:25:04 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/customizing-jquery-for-datepicker" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Customizing Jquery for Datepicker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customizing-jquery-for-datepicker#post-70560</link>
			<pubDate>Fri, 10 Aug 2012 10:52:53 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">70560@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No problem. Yeah, classes versus id's is always one of those things that people miss because we don't see the things we don't expect to be wrong. :) I do it all the time.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ktrusak on "Customizing Jquery for Datepicker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customizing-jquery-for-datepicker#post-70559</link>
			<pubDate>Fri, 10 Aug 2012 10:47:47 +0000</pubDate>
			<dc:creator>ktrusak</dc:creator>
			<guid isPermaLink="false">70559@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;My mistake, I put in the &#38;lt;head&#38;gt; of the primary site instead of the subsite.&#60;/p&#62;
&#60;p&#62;Okay great! now it is working with the .datepicker suggestion. What a great pickup - a '.' instead of a '#'&#60;/p&#62;
&#60;p&#62;Thanks for your help
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Customizing Jquery for Datepicker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customizing-jquery-for-datepicker#post-70555</link>
			<pubDate>Fri, 10 Aug 2012 10:31:20 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">70555@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't see that in the head of the page currently, but the datepicker doesn't have a CSS ID of #datepicker. Try .datepicker and see if that works any better for you as it does have a class of datepicker.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ktrusak on "Customizing Jquery for Datepicker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customizing-jquery-for-datepicker#post-70548</link>
			<pubDate>Fri, 10 Aug 2012 10:12:32 +0000</pubDate>
			<dc:creator>ktrusak</dc:creator>
			<guid isPermaLink="false">70548@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the reply David&#60;/p&#62;
&#60;p&#62;I personally cannot be sure about the quality of the code, as I got it from someone on stackoverflow ( &#60;a href=&#34;http://stackoverflow.com/questions/2505739/jquery-datepicker-customization&#34; rel=&#34;nofollow&#34;&#62;http://stackoverflow.com/questions/2505739/jquery-datepicker-customization&#60;/a&#62; ) , but I think it is straight from the jquery website so I think it is okay. I tried inserting it in the &#38;lt;head&#38;gt; earlier, but put it in again now so you could see &#60;/p&#62;
&#60;p&#62;What is in the head right now:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script&#38;gt;
jQuery(document).ready(function($) {

  $(&#38;quot;#datepicker&#38;quot;).datepicker({
    defaultDate: +2,
    minDate: 0,
    maxDate: &#38;quot;+1y&#38;quot;,
    numberOfMonths: 1,
    showAnim: &#38;#39;fadeIn&#38;#39;,
    showButtonPanel: true,
    buttonImageOnly: true,
    buttonText: &#38;#39;Pick a date&#38;#39;,
    showOn: &#38;#39;both&#38;#39;
  });

}); &#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Here is test page : &#60;a href=&#34;http://hookahi.com/example&#34; rel=&#34;nofollow&#34;&#62;http://hookahi.com/example&#60;/a&#62; (click the 'Reserve' Button on the right side then there is a form with the date field)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Customizing Jquery for Datepicker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customizing-jquery-for-datepicker#post-70547</link>
			<pubDate>Fri, 10 Aug 2012 10:05:27 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">70547@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Did you try to just add the JS in your header to see if it would override the settings? Maybe for some reason there is an issue with the customization you came up with? It looks fine to me, but I'm not a JS expert. Also, can you link to your form so we can have a look?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ktrusak on "Customizing Jquery for Datepicker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customizing-jquery-for-datepicker#post-70545</link>
			<pubDate>Fri, 10 Aug 2012 09:51:33 +0000</pubDate>
			<dc:creator>ktrusak</dc:creator>
			<guid isPermaLink="false">70545@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to override the default datepicker script? I am trying to change the view because I only want future dates, for 1 year only, and only one month not 3. &#60;/p&#62;
&#60;p&#62;I tried the normal way of enqueue-ing a new #datepicker script in functions and loading a file in my js file, but couldn't get it to work. &#60;/p&#62;
&#60;p&#62;I saved this as init.js in my js file:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;jQuery(document).ready(function($) {

  /* For all options see &#60;a href=&#34;http://jqueryui.com/demos/datepicker/&#34; rel=&#34;nofollow&#34;&#62;http://jqueryui.com/demos/datepicker/&#60;/a&#62; */
  $(&#38;quot;#datepicker&#38;quot;).datepicker({
    defaultDate: +2,
    minDate: 0,
    maxDate: &#38;quot;+1y&#38;quot;,
    numberOfMonths: 1,
    showAnim: &#38;#39;fadeIn&#38;#39;,
    showButtonPanel: true,
    buttonImageOnly: true,
    buttonText: &#38;#39;Pick a date&#38;#39;,
    showOn: &#38;#39;both&#38;#39;
  });

});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and put this in my functions:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;wp_enqueue_scripts&#38;#39;, &#38;#39;my_add_scripts2&#38;#39;);

function my_add_scripts2() {
    wp_enqueue_script(&#38;#39;init&#38;#39;, get_template_directory_uri() . &#38;#39;/lib/js/init.js&#38;#39;, array(&#38;#39;jquery&#38;#39;));
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But it didn't change anything.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
