<?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: Datepicker jQuery - modify function and styling</title>
		<link>https://legacy.forums.gravityhelp.com/topic/datepicker-jquery-modify-function-and-styling</link>
		<description>Gravity Support Forums Topic: Datepicker jQuery - modify function and styling</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 15:28:13 +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/datepicker-jquery-modify-function-and-styling" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Datepicker jQuery - modify function and styling"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/datepicker-jquery-modify-function-and-styling#post-99629</link>
			<pubDate>Thu, 06 Dec 2012 10:46:27 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">99629@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm glad you were able to figure it out, and that's something we all must do sometimes. I can't tell you the number of times in working with PHP that I am left searching for the missing semi-colon that is right in front of my eyes.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>twentyfourten on "Datepicker jQuery - modify function and styling"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/datepicker-jquery-modify-function-and-styling#post-99590</link>
			<pubDate>Thu, 06 Dec 2012 09:09:27 +0000</pubDate>
			<dc:creator>twentyfourten</dc:creator>
			<guid isPermaLink="false">99590@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;10 minutes later, I've looked back at form and realised I've missed the # off the input IDs. Apologies ... and let this be a lesson to everyone to take a break once in a while and look at your code with fresh eyes.&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>
		<item>
			<title>twentyfourten on "Datepicker jQuery - modify function and styling"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/datepicker-jquery-modify-function-and-styling#post-99583</link>
			<pubDate>Thu, 06 Dec 2012 08:42:07 +0000</pubDate>
			<dc:creator>twentyfourten</dc:creator>
			<guid isPermaLink="false">99583@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Looked through support and wider online resources but hitting a wall and in need of some assistance.&#60;/p&#62;
&#60;p&#62;I have a WordPress site, with a Contact page.&#60;br /&#62;
Using Gravity forms for the Contact form.&#60;br /&#62;
I have two date pickers, essentially a 'start' and 'end'.&#60;br /&#62;
I want selection of 1st to be reflected in the 2nd - in that the end datepicker can display no dates earlier than the start date.&#60;/p&#62;
&#60;p&#62;In a 'test' html page I have this working perfectly:&#60;br /&#62;
&#60;a href=&#34;http://dev.twentyfourten.com/clients/daleygolfholidays/test.html&#34; rel=&#34;nofollow&#34;&#62;http://dev.twentyfourten.com/clients/daleygolfholidays/test.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Code used is this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script src=&#38;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script src=&#38;quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;link href=&#38;quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css&#38;quot; rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot;  /&#38;gt;
    &#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
	jQuery.noConflict();
   jQuery(document).ready(function($) {
    $(&#38;quot;#txtFromDate&#38;quot;).datepicker({
        minDate: 0,
        maxDate: &#38;quot;+365D&#38;quot;,
        numberOfMonths: 2,
		dateFormat: &#38;#39;dd/mm/yy&#38;#39;,
        onSelect: function(selected) {
          $(&#38;quot;#txtToDate&#38;quot;).datepicker(&#38;quot;option&#38;quot;,&#38;quot;minDate&#38;quot;, selected)
        }
    });
    $(&#38;quot;#txtToDate&#38;quot;).datepicker({
        minDate: &#38;quot;+7D&#38;quot;,
        maxDate:&#38;quot;+365D&#38;quot;,
        numberOfMonths: 2,
		dateFormat: &#38;#39;dd/mm/yy&#38;#39;,
        onSelect: function(selected) {
           $(&#38;quot;#txtFromDate&#38;quot;).datepicker(&#38;quot;option&#38;quot;,&#38;quot;maxDate&#38;quot;, selected)
        }
    });
});

&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However, when I try and work this code in to my WordPress Contact page I don't get the same results:&#60;br /&#62;
&#60;a href=&#34;http://www.daleygolfholidays.co.uk/contact-us/&#34; rel=&#34;nofollow&#34;&#62;http://www.daleygolfholidays.co.uk/contact-us/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here I am using the following code up in the wp-head section:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
	jQuery.noConflict();
   jQuery(document).ready(function($) {
    $(&#38;quot;input_1_5&#38;quot;).datepicker({
        minDate: 0,
        maxDate: &#38;quot;+365D&#38;quot;,
        numberOfMonths: 2,
		dateFormat: &#38;#39;dd/mm/yy&#38;#39;,
        onSelect: function(selected) {
          $(&#38;quot;input_1_6&#38;quot;).datepicker(&#38;quot;option&#38;quot;,&#38;quot;minDate&#38;quot;, selected)
        }
    });
    $(&#38;quot;input_1_6&#38;quot;).datepicker({
        minDate: &#38;quot;+7D&#38;quot;,
        maxDate:&#38;quot;+365D&#38;quot;,
        numberOfMonths: 2,
		dateFormat: &#38;#39;dd/mm/yy&#38;#39;,
        onSelect: function(selected) {
           $(&#38;quot;input_1_5&#38;quot;).datepicker(&#38;quot;option&#38;quot;,&#38;quot;maxDate&#38;quot;, selected)
        }
    });
});

&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;* Datepicker IDs are changed from test version to Gravity form inputs&#60;/p&#62;
&#60;p&#62;And down in my footer after all other scripts I am using the following refs:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script src=&#38;quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;link href=&#38;quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css&#38;quot; rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot;  /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;As you can see when viewing the page and using the datepickers, neither the function nor styling is as seen in the test page.&#60;/p&#62;
&#60;p&#62;I've tried moving the script in the header down into the footer, the links in the footer up to being with the header script, no dice - the original Gravity form settings still seem to be 'in control'.&#60;/p&#62;
&#60;p&#62;Would appreciate some help!&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
