<?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: Check For Non-Empty Input Fields</title>
	<atom:link href="http://thefrontiergroup.com.au/blog/2008/11/jquery-check-for-non-empty-input-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://thefrontiergroup.com.au/blog/2008/11/jquery-check-for-non-empty-input-fields/</link>
	<description>Your peek inside the collective mind of The Frontier Group</description>
	<lastBuildDate>Wed, 21 Jul 2010 07:16:08 +0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: anirudha</title>
		<link>http://thefrontiergroup.com.au/blog/2008/11/jquery-check-for-non-empty-input-fields/comment-page-1/#comment-395</link>
		<dc:creator>anirudha</dc:creator>
		<pubDate>Fri, 11 Sep 2009 05:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=176#comment-395</guid>
		<description>please write a blg blog</description>
		<content:encoded><![CDATA[<p>please write a blg blog</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anirudha</title>
		<link>http://thefrontiergroup.com.au/blog/2008/11/jquery-check-for-non-empty-input-fields/comment-page-1/#comment-394</link>
		<dc:creator>anirudha</dc:creator>
		<pubDate>Fri, 11 Sep 2009 05:40:21 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=176#comment-394</guid>
		<description>how this function works</description>
		<content:encoded><![CDATA[<p>how this function works</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://thefrontiergroup.com.au/blog/2008/11/jquery-check-for-non-empty-input-fields/comment-page-1/#comment-244</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Fri, 29 May 2009 04:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=176#comment-244</guid>
		<description>I&#039;m not sure what to say, my code does work and I&#039;ve tested it in application and also again just now in Firebug. I&#039;d check your HTML for hidden fields, or just do a bit of debugging to find the field that is being reported back to give you a length of 1. 

Your code is actually incorrect as a solution to the problem I was trying to solve here. You&#039;re chaining a single element function against a function that returns an array. In jQuery issuing the val() function against an array of elements will issue the val() function against the first element. In this case it will be an input element that is non-blank, and so your length will always be &gt; 0, as you&#039;re just getting the length of the string. 

In my example I am trying to check if there are any elements that contain some data, so I&#039;m trying to find the length of the array of input elements that aren&#039;t blank. 

Let me know if you have any further questions. 

Cheers :)</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what to say, my code does work and I&#8217;ve tested it in application and also again just now in Firebug. I&#8217;d check your HTML for hidden fields, or just do a bit of debugging to find the field that is being reported back to give you a length of 1. </p>
<p>Your code is actually incorrect as a solution to the problem I was trying to solve here. You&#8217;re chaining a single element function against a function that returns an array. In jQuery issuing the val() function against an array of elements will issue the val() function against the first element. In this case it will be an input element that is non-blank, and so your length will always be &gt; 0, as you&#8217;re just getting the length of the string. </p>
<p>In my example I am trying to check if there are any elements that contain some data, so I&#8217;m trying to find the length of the array of input elements that aren&#8217;t blank. </p>
<p>Let me know if you have any further questions. </p>
<p>Cheers :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko</title>
		<link>http://thefrontiergroup.com.au/blog/2008/11/jquery-check-for-non-empty-input-fields/comment-page-1/#comment-242</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Thu, 28 May 2009 11:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=176#comment-242</guid>
		<description>doesn&#039;t work
in debugger I can see that length is always 1
it works if I write code like this:

row.find(&#039;input[value!=&quot;&quot;]&#039;).val().length &gt; 0 

cheers</description>
		<content:encoded><![CDATA[<p>doesn&#8217;t work<br />
in debugger I can see that length is always 1<br />
it works if I write code like this:</p>
<p>row.find(&#8217;input[value!=""]&#8216;).val().length &gt; 0 </p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://thefrontiergroup.com.au/blog/2008/11/jquery-check-for-non-empty-input-fields/comment-page-1/#comment-73</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Wed, 19 Nov 2008 13:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=176#comment-73</guid>
		<description>Cool idea.</description>
		<content:encoded><![CDATA[<p>Cool idea.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
