<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Infinite Loop - Beginner&#039;s SEO, Beginner C# &#38; JQuery Tutorials &#187; easy javascript validation</title>
	<atom:link href="http://theinfiniteloopblog.com/tag/easy-javascript-validation/feed/" rel="self" type="application/rss+xml" />
	<link>http://theinfiniteloopblog.com</link>
	<description>Problem. Problem Solved. Loop. - The life of a programmer</description>
	<lastBuildDate>Wed, 17 Aug 2011 15:29:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Easy Javascript Validation using JQuery</title>
		<link>http://theinfiniteloopblog.com/programming/easy-javascript-validation-using-jquery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=easy-javascript-validation-using-jquery</link>
		<comments>http://theinfiniteloopblog.com/programming/easy-javascript-validation-using-jquery/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 03:45:55 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[easy javascript validation]]></category>
		<category><![CDATA[easy jquery validation]]></category>
		<category><![CDATA[easy jquery validator]]></category>
		<category><![CDATA[jquery validation plugin]]></category>
		<category><![CDATA[jquery validator]]></category>
		<category><![CDATA[jquery validator plugin]]></category>
		<category><![CDATA[jquery.validator.js]]></category>

		<guid isPermaLink="false">http://scottmoniz.com/programmingBlog/?p=234</guid>
		<description><![CDATA[Now, there might be other tools out there, but this is how I do mine. I like to write stuff from scratch but I actually feel like this little script would make life easier for a lot of people. You're free to use this as long as you leave the copyright in there. First download [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Now, there might be other tools out there, but this is how I do mine. I like to write stuff from scratch but I actually feel like this little script would make life easier for a lot of people. You're free to use this as long as you leave the copyright in there.</p>
<p>First download jQuery and this script:  <a title="Jquery Validator" href="http://theinfiniteloopblog.com/wp-content/uploads/2009/09/jquery.validator.js"> jquery.validator.js</a> (Right click&gt;Save As)<br />
Next, add these lines.</p>
<p>&lt;script src="jquery.js" type="text/javascript"&gt;&lt;/script&gt;<br />
&lt;script src="jquery.validator.js" type="text/javascript"&gt;&lt;/script&gt;</p>
<p>When you create your forms create them like this.<br />
The form must have an id, and it must have the class "validate".<br />
Add the class 'req' for any fields that are required.<br />
Coming soon: email, int verification, age, etc.</p>
<pre>&lt;form <strong>id</strong>="contactform" action="whatever_action_you_want.php" <strong>class</strong>="validate"&gt;
&lt;input type="text" name="firstname" class="req"/&gt;&lt;span class="val"&gt;*&lt;/span&gt;
&lt;input type="text" name="lastname" class="req"/&gt;&lt;span class="val"&gt;*&lt;span&gt;
&lt;select name="country req"&gt;
&lt;option value=""&gt;Please select&lt;/option&gt;
&lt;option value="CA"&gt;Canada&lt;/option&gt;
&lt;/select&gt;
&lt;/form&gt;</pre>
<p>In your css add these<br />
span.val{visibility: hidden; color: red; font-weight:bold;}</p>
<p>Thats it.</p>
<p>If you guys post comments and subscribe, I can let you know when i further develop this. It will include number verification, email verification, postal code verification. It's very simple and lightweight and will shave time off any project. File (Right click>Save As): <a href="http://theinfiniteloopblog.com/wp-content/uploads/2009/09/jquery.validator.js">jquery.validator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://theinfiniteloopblog.com/programming/easy-javascript-validation-using-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

