<?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: Custom jQuery working for validation error but not confirmation</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-jquery-working-for-validation-error-but-not-confirmation</link>
		<description>Gravity Support Forums Topic: Custom jQuery working for validation error but not confirmation</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:03:59 +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/custom-jquery-working-for-validation-error-but-not-confirmation" rel="self" type="application/rss+xml" />

		<item>
			<title>iasr on "Custom jQuery working for validation error but not confirmation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-jquery-working-for-validation-error-but-not-confirmation#post-231279</link>
			<pubDate>Tue, 30 Apr 2013 16:17:20 +0000</pubDate>
			<dc:creator>iasr</dc:creator>
			<guid isPermaLink="false">231279@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Guys.&#60;/p&#62;
&#60;p&#62;I am trying to add a couple of classes to the '.gform_confirmation_message_X' elements and am having no luck. However, the following code is successful in adding those classes to the '.validation_message element'.&#60;/p&#62;
&#60;p&#62;The Code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function gformsError() {

		jQuery(document).bind(&#38;#39;gform_post_render&#38;#39;, function(){

   			$(&#38;#39;#input_2_1&#38;#39;).attr(&#38;#39;placeholder&#38;#39;,&#38;#39;Name...&#38;#39;);
	    	$(&#38;#39;#input_2_3&#38;#39;).attr(&#38;#39;placeholder&#38;#39;,&#38;#39;Email...&#38;#39;);
	    	$(&#38;#39;#input_2_5&#38;#39;).attr(&#38;#39;placeholder&#38;#39;,&#38;#39;Phone...&#38;#39;);
	    	$(&#38;#39;#input_2_2&#38;#39;).attr(&#38;#39;placeholder&#38;#39;,&#38;#39;Subject...&#38;#39;);
	    	$(&#38;#39;#input_2_6&#38;#39;).attr(&#38;#39;placeholder&#38;#39;,&#38;#39;Your Company\&#38;#39;s Goals...&#38;#39;);

	    	$(&#38;#39;#input_4_1&#38;#39;).attr(&#38;#39;placeholder&#38;#39;,&#38;#39;Name...&#38;#39;);
	    	$(&#38;#39;#input_4_3&#38;#39;).attr(&#38;#39;placeholder&#38;#39;,&#38;#39;Email...&#38;#39;);
	    	$(&#38;#39;#input_4_5&#38;#39;).attr(&#38;#39;placeholder&#38;#39;,&#38;#39;Phone...&#38;#39;);
	    	$(&#38;#39;#input_4_2&#38;#39;).attr(&#38;#39;placeholder&#38;#39;,&#38;#39;Subject...&#38;#39;);
	    	$(&#38;#39;#input_4_6&#38;#39;).attr(&#38;#39;placeholder&#38;#39;,&#38;#39;Your Company\&#38;#39;s Goals...&#38;#39;);

	    	$(&#38;#39;[placeholder]&#38;#39;).focus(function() {
			  var input = $(this);
			  if (input.val() == input.attr(&#38;#39;placeholder&#38;#39;)) {
			    input.val(&#38;#39;&#38;#39;);
			    input.removeClass(&#38;#39;placeholder&#38;#39;);
			  }
			}).blur(function() {
			  var input = $(this);
			  if (input.val() == &#38;#39;&#38;#39; &#124;&#124; input.val() == input.attr(&#38;#39;placeholder&#38;#39;)) {
			    input.addClass(&#38;#39;placeholder&#38;#39;);
			    input.val(input.attr(&#38;#39;placeholder&#38;#39;));
			  }
			}).blur().parents(&#38;#39;form&#38;#39;).submit(function() {
			  $(this).find(&#38;#39;[placeholder]&#38;#39;).each(function() {
			    var input = $(this);
			    if (input.val() == input.attr(&#38;#39;placeholder&#38;#39;)) {
			      input.val(&#38;#39;&#38;#39;);
			    }
			  })
			});

			$(&#38;#39;.gfield_description.validation_message&#38;#39;).addClass(&#38;#39;animated fadeIn&#38;#39;);
			$(&#38;#39;.gform_confirmation_message_3&#38;#39;).addClass(&#38;#39;animated fadeIn&#38;#39;);
			$(&#38;#39;.gform_confirmation_message_2&#38;#39;).addClass(&#38;#39;animated fadeIn&#38;#39;);

		});
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;A demo: &#60;a href=&#34;http://dppad.com/dev/3/&#34; rel=&#34;nofollow&#34;&#62;http://dppad.com/dev/3/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
