<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1012075" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1012075</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/form-verification-help#comment-1069703</link>
    <description> &lt;p&gt;Max,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.  I was able to get it to work.  No, you don&#039;t need to use the &quot;return true&quot; statement.  The following worked:&lt;/p&gt;
&lt;p&gt;if(document.orderForm.first.selectedIndex==0 &amp;amp;&amp;amp;                      document.orderForm.second.selectedIndex==0){&lt;br /&gt;
    alert(&quot;error message&quot;);&lt;br /&gt;
    return false;&lt;br /&gt;
     } &lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;
 </description>
     <pubDate>Fri, 18 Aug 2000 15:26:23 +0000</pubDate>
 <dc:creator>Bob</dc:creator>
 <guid isPermaLink="false">comment 1069703 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/form-verification-help#comment-1069702</link>
    <description> &lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;  You could loop through the form and use the following:&lt;/p&gt;
&lt;p&gt;   if (elements[i].type == &#039;select-one&#039;)&lt;br /&gt;
      if (elements[i].options[0].selected)&lt;br /&gt;
      {&lt;br /&gt;
        eval(elements[i].options[0].value)&lt;br /&gt;
        isOK = false;&lt;br /&gt;
      }&lt;br /&gt;
where options[0].value is an alert, and isOK is a boolean variable that decides whether to submit the form or not. The above was cut from the &quot;Validating Forms&quot; script/tutorial at my site.&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
 </description>
     <pubDate>Fri, 18 Aug 2000 15:25:38 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1069702 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/form-verification-help#comment-1069679</link>
    <description> &lt;p&gt;do you need to include &#039;return true&#039;?  Like this:&lt;/p&gt;
&lt;p&gt;if(document.orderForm.first.value==&quot;0&quot; &amp;amp;&amp;amp;&lt;br /&gt;
document.orderForm.second.value==&quot;0&quot;){&lt;br /&gt;
alert(&quot;error message&quot;);&lt;br /&gt;
return false;&lt;br /&gt;
}&lt;br /&gt;
else{&lt;br /&gt;
return true;&lt;br /&gt;
}&lt;/p&gt;
 </description>
     <pubDate>Thu, 17 Aug 2000 22:02:51 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1069679 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
