<?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: JavaScript Validation for HTML Forms</title>
	<atom:link href="http://studge.com/javascript-validation-for-html-forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://studge.com/javascript-validation-for-html-forms/</link>
	<description></description>
	<lastBuildDate>Fri, 27 Aug 2010 13:25:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sze jia</title>
		<link>http://studge.com/javascript-validation-for-html-forms/comment-page-1/#comment-6896</link>
		<dc:creator>sze jia</dc:creator>
		<pubDate>Wed, 17 Dec 2008 06:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/javascript-validation-for-html-forms/#comment-6896</guid>
		<description>what are the codes for validating checkboxes and drop down menus? to make sure it is checked and drop down menu has been selected?

thanks!</description>
		<content:encoded><![CDATA[<p>what are the codes for validating checkboxes and drop down menus? to make sure it is checked and drop down menu has been selected?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Studge</title>
		<link>http://studge.com/javascript-validation-for-html-forms/comment-page-1/#comment-5723</link>
		<dc:creator>Studge</dc:creator>
		<pubDate>Mon, 01 Sep 2008 17:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/javascript-validation-for-html-forms/#comment-5723</guid>
		<description>You just need to add an alert to the end of the last function, replace the &lt;code&gt;validate_form&lt;/code&gt; function with the following code:
&lt;pre&gt;&lt;code&gt;function validate_form(thisform) {
	with (thisform) {
		if (validate_required(name,&quot;Please specify your name!&quot;)==false) {
			name.focus();
			return false;
		}
		if (validate_required(email,&quot;Email must be filled out!&quot;)==false) {
			email.focus();
			return false;
		}
		if (validate_email(email,&quot;Not a valid e-mail address!&quot;)==false) {
			email.focus();
			return false;
		}
		if (validate_required(color,&quot;Forgot favorite color!&quot;)==false) {
			color.focus();
			return false;
		}
		alert(&#039;You have successfully sent your query!&#039;);
	}
}&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>You just need to add an alert to the end of the last function, replace the <code>validate_form</code> function with the following code:</p>
<pre><code>function validate_form(thisform) {
	with (thisform) {
		if (validate_required(name,"Please specify your name!")==false) {
			name.focus();
			return false;
		}
		if (validate_required(email,"Email must be filled out!")==false) {
			email.focus();
			return false;
		}
		if (validate_email(email,"Not a valid e-mail address!")==false) {
			email.focus();
			return false;
		}
		if (validate_required(color,"Forgot favorite color!")==false) {
			color.focus();
			return false;
		}
		alert('You have successfully sent your query!');
	}
}</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: riyas</title>
		<link>http://studge.com/javascript-validation-for-html-forms/comment-page-1/#comment-5283</link>
		<dc:creator>riyas</dc:creator>
		<pubDate>Tue, 22 Jul 2008 11:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/javascript-validation-for-html-forms/#comment-5283</guid>
		<description>when i click submit button ,i want to show &quot; you have successfully sent your quiry&quot; if i filled form correctly.</description>
		<content:encoded><![CDATA[<p>when i click submit button ,i want to show &#8221; you have successfully sent your quiry&#8221; if i filled form correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Torrens</title>
		<link>http://studge.com/javascript-validation-for-html-forms/comment-page-1/#comment-2720</link>
		<dc:creator>Lee Torrens</dc:creator>
		<pubDate>Thu, 13 Mar 2008 18:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/javascript-validation-for-html-forms/#comment-2720</guid>
		<description>This is a handy script. I chose this one because it doesn&#039;t dump pages of code in the header. 

However, it doesn&#039;t extend to validating radio buttons or drop-down lists, which would be a handy addition. 

-Lee</description>
		<content:encoded><![CDATA[<p>This is a handy script. I chose this one because it doesn&#8217;t dump pages of code in the header. </p>
<p>However, it doesn&#8217;t extend to validating radio buttons or drop-down lists, which would be a handy addition. </p>
<p>-Lee</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shilpa</title>
		<link>http://studge.com/javascript-validation-for-html-forms/comment-page-1/#comment-682</link>
		<dc:creator>shilpa</dc:creator>
		<pubDate>Thu, 15 Nov 2007 11:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/javascript-validation-for-html-forms/#comment-682</guid>
		<description>good</description>
		<content:encoded><![CDATA[<p>good</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.535 seconds -->
<!-- Cached page served by WP-Cache -->
