<?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/"
		>
<channel>
	<title>Comments on: jQuery Validation Plugin and notEqualTo Rule</title>
	<atom:link href="http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/</link>
	<description>My thoughts on ColdFusion, Flex and other RIA stuff....</description>
	<lastBuildDate>Tue, 07 Feb 2012 10:21:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Dave</title>
		<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/comment-page-1/#comment-10794</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 15 Nov 2011 08:56:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=537#comment-10794</guid>
		<description>Thank you for this!</description>
		<content:encoded><![CDATA[<p>Thank you for this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike R.</title>
		<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/comment-page-1/#comment-9757</link>
		<dc:creator>Mike R.</dc:creator>
		<pubDate>Tue, 13 Sep 2011 09:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=537#comment-9757</guid>
		<description>Thank you for sharing this, it really worked perfectly at my end</description>
		<content:encoded><![CDATA[<p>Thank you for sharing this, it really worked perfectly at my end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umer</title>
		<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/comment-page-1/#comment-7829</link>
		<dc:creator>Umer</dc:creator>
		<pubDate>Sun, 12 Jun 2011 11:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=537#comment-7829</guid>
		<description>Nice post..  and awesome trick...</description>
		<content:encoded><![CDATA[<p>Nice post..  and awesome trick&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Berg</title>
		<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/comment-page-1/#comment-7203</link>
		<dc:creator>Berg</dc:creator>
		<pubDate>Wed, 18 May 2011 10:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=537#comment-7203</guid>
		<description>Thanks for the code and the blog entry as well.</description>
		<content:encoded><![CDATA[<p>Thanks for the code and the blog entry as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mykola Rykov</title>
		<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/comment-page-1/#comment-6852</link>
		<dc:creator>Mykola Rykov</dc:creator>
		<pubDate>Tue, 19 Apr 2011 09:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=537#comment-6852</guid>
		<description>Thank you!
For jQuery 1.5.2 &amp; jQuery Validate 1.8.0 I use it like:

jQuery.validator.addMethod(
	&quot;notEqualTo&quot;,
	function (value, element, param) {
		return this.optional(element) &#124;&#124; value != param.val();
	},
	&quot;Please specify a different value&quot;
);

and:

...
	rules: {
		oneCity: {
				notEqualTo: $(&#039;#anotherCityId)&#039;)
		},
		anotherCity: {
				notEqualTo: $(&#039;#oneCityId&#039;)
		}
	},
...</description>
		<content:encoded><![CDATA[<p>Thank you!<br />
For jQuery 1.5.2 &amp; jQuery Validate 1.8.0 I use it like:</p>
<p>jQuery.validator.addMethod(<br />
	&#8220;notEqualTo&#8221;,<br />
	function (value, element, param) {<br />
		return this.optional(element) || value != param.val();<br />
	},<br />
	&#8220;Please specify a different value&#8221;<br />
);</p>
<p>and:</p>
<p>&#8230;<br />
	rules: {<br />
		oneCity: {<br />
				notEqualTo: $(&#8216;#anotherCityId)&#8217;)<br />
		},<br />
		anotherCity: {<br />
				notEqualTo: $(&#8216;#oneCityId&#8217;)<br />
		}<br />
	},<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/comment-page-1/#comment-6679</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 08 Mar 2011 00:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=537#comment-6679</guid>
		<description>This worked perfectly. Thanks!</description>
		<content:encoded><![CDATA[<p>This worked perfectly. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/comment-page-1/#comment-5513</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Sun, 26 Sep 2010 16:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=537#comment-5513</guid>
		<description>Maybe your additional-methods.js was cached and was not picking up new changes?</description>
		<content:encoded><![CDATA[<p>Maybe your additional-methods.js was cached and was not picking up new changes?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/comment-page-1/#comment-5453</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 17 Sep 2010 16:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=537#comment-5453</guid>
		<description>I couldn&#039;t get this work in the additional-methods.js, so I added this to main jquery.validate.js file


notequalTo: function(value, element, param) {
 return this.optional(element) &#124;&#124; value != $(param).val();
},</description>
		<content:encoded><![CDATA[<p>I couldn&#8217;t get this work in the additional-methods.js, so I added this to main jquery.validate.js file</p>
<p>notequalTo: function(value, element, param) {<br />
 return this.optional(element) || value != $(param).val();<br />
},</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuj Gakhar</title>
		<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/comment-page-1/#comment-5405</link>
		<dc:creator>Anuj Gakhar</dc:creator>
		<pubDate>Sun, 12 Sep 2010 11:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=537#comment-5405</guid>
		<description>It should be an array so it would be something like 
notEqualTo:[&#039;Paikkakunta&#039;]</description>
		<content:encoded><![CDATA[<p>It should be an array so it would be something like<br />
notEqualTo:['Paikkakunta']</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fobin</title>
		<link>http://www.anujgakhar.com/2009/08/26/jquery-validation-plugin-and-notequalto-rule/comment-page-1/#comment-5328</link>
		<dc:creator>Fobin</dc:creator>
		<pubDate>Fri, 03 Sep 2010 07:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.anujgakhar.com/?p=537#comment-5328</guid>
		<description>Should this work also in jQuery 1.4.2 and Validator 1.7? 

I&#039;ve tried to put it in use at my site http://www.muistiohjelma.fi but it doesn&#039;t seem to validate this:
rules: {
 paikkakunta: {
  required: true,
  notEqualTo:&#039;Paikkakunta&#039;,
  },
}

Can you use string there like have in this?</description>
		<content:encoded><![CDATA[<p>Should this work also in jQuery 1.4.2 and Validator 1.7? </p>
<p>I&#8217;ve tried to put it in use at my site <a href="http://www.muistiohjelma.fi" rel="nofollow">http://www.muistiohjelma.fi</a> but it doesn&#8217;t seem to validate this:<br />
rules: {<br />
 paikkakunta: {<br />
  required: true,<br />
  notEqualTo:&#8217;Paikkakunta&#8217;,<br />
  },<br />
}</p>
<p>Can you use string there like have in this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

