<?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: Onclick jQuery outside of the form not functioning.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning</link>
		<description>Gravity Support Forums Topic: Onclick jQuery outside of the form not functioning.</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 11:10:15 +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/onclick-jquery-outside-of-the-form-not-functioning" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Onclick jQuery outside of the form not functioning."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning#post-44509</link>
			<pubDate>Tue, 20 Dec 2011 07:23:01 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">44509@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;For other users wondering, this issue turned out to be caused from two versions of jQuery being loaded. Thanks for tracking this down and sharing Provdes. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Onclick jQuery outside of the form not functioning."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning#post-44351</link>
			<pubDate>Mon, 19 Dec 2011 07:00:38 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">44351@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks David, have passed on email with user deets.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Onclick jQuery outside of the form not functioning."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning#post-44271</link>
			<pubDate>Fri, 16 Dec 2011 17:47:30 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">44271@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Provdes,&#60;/p&#62;
&#60;p&#62;The login you provided earlier not longer appears to be working for me? Could you resend to &#60;a href=&#34;mailto:david@rocketgenius.com&#34;&#62;david@rocketgenius.com&#60;/a&#62;?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Onclick jQuery outside of the form not functioning."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning#post-44235</link>
			<pubDate>Fri, 16 Dec 2011 10:47:15 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">44235@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually, I think something is happening. You have the login details still don't you? Check it out it with ajax enabled.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Onclick jQuery outside of the form not functioning."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning#post-44234</link>
			<pubDate>Fri, 16 Dec 2011 10:40:58 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">44234@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Of course, can beleive I was expecting it to run that, because the page is refreshed and long gone. AJAX sounds promising, though i've embedded the form with ajax, and also tried added the form via ajax in my page editor. The form pull's in both ways but it does not submit when ajax is enabled?&#60;/p&#62;
&#60;p&#62;Do you know why ajax may not be working? I've never had a problem using ajax before in gravityforms?&#60;/p&#62;
&#60;p&#62;Thanks for help
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Onclick jQuery outside of the form not functioning."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning#post-44149</link>
			<pubDate>Thu, 15 Dec 2011 13:34:27 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">44149@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Provdes,&#60;/p&#62;
&#60;p&#62;Likely your scripts are not working because the form is posting back to the page immediately so click event long past by the time the page is reloaded. You might try submitting your form via AJAX. Here are some instructions on embedding your form with AJAX enabled:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Let me know if this does not answer your question.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Onclick jQuery outside of the form not functioning."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning#post-43961</link>
			<pubDate>Tue, 13 Dec 2011 17:31:36 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">43961@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Click the contact button to reveal the form.&#60;/p&#62;
&#60;p&#62;When the form submits, the form closes, so I'm using the script &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$contactSlide.stop().css(&#38;quot;top&#38;quot;,&#38;quot;0&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;which works, but why none of above work is bizarre?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Onclick jQuery outside of the form not functioning."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning#post-43959</link>
			<pubDate>Tue, 13 Dec 2011 17:29:54 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">43959@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Thanks for taking a look,&#60;/p&#62;
&#60;p&#62;If you can remove this when you read this so I can keep it private. Thanks&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.repsolhondateam.com/wp/&#34; rel=&#34;nofollow&#34;&#62;http://www.repsolhondateam.com/wp/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Login required (details sent separately)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Onclick jQuery outside of the form not functioning."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning#post-43811</link>
			<pubDate>Mon, 12 Dec 2011 17:08:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">43811@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please post a link to your form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Onclick jQuery outside of the form not functioning."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/onclick-jquery-outside-of-the-form-not-functioning#post-43777</link>
			<pubDate>Mon, 12 Dec 2011 12:11:58 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">43777@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi &#60;/p&#62;
&#60;p&#62;This is a little outside of the plugins support but you will probably know straight away if its because of the gravity forms.&#60;/p&#62;
&#60;p&#62;I'm trying to run this basic script when my from button is clicked.&#60;/p&#62;
&#60;p&#62;My input markup below&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;input type=&#38;quot;submit&#38;quot; id=&#38;quot;gform_submit_button_1&#38;quot; class=&#38;quot;button gform_button&#38;quot; value=&#38;quot;Send&#38;quot; tabindex=&#38;quot;7&#38;quot;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;These are all the various scripts below I've tried to run when the input button is clicked. Non of them work, but I've tested the function, and it definitely works 100% - but it does not work when it's integrated with the form button.&#60;/p&#62;
&#60;p&#62;Script 1&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$(&#38;quot;input#gform_submit_button_1&#38;quot;).on(&#38;#39;click&#38;#39;, function () {
    $contactSlide.stop().css(&#38;quot;top&#38;quot;,&#38;quot;0&#38;quot;);
});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Script 2&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$(&#38;quot;form#gform_1&#38;quot;).submit(function(event) {
    $contactSlide.stop().css(&#38;quot;top&#38;quot;,&#38;quot;0&#38;quot;);
});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Script 3&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$(&#38;quot;input#gform_submit_button_1&#38;quot;).focus(function () {
    $contactSlide.stop().css(&#38;quot;top&#38;quot;,&#38;quot;0&#38;quot;);
});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I've tried all these above and they should logically work, but they are not, I've tried return false on them all (but obviously this kills the form) and i've also tried return true, which allows the form to submit but does not run the function.&#60;/p&#62;
&#60;p&#62;Is it because of gravity forms this is not working?&#60;/p&#62;
&#60;p&#62;Thanks for any advice.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
