Validating more that one email field
<p>Im using <a href="http://jorenrapini.com/blog/javascript/the-simple-quick-and-small-jquery-html-form-validation-solution" rel="nofollow">Joren Rapini's validation code</a> to for my online form. <a href="http://jorenrapini.com/blog/javascript/the-simple-quick-and-small-jquery-html-form-validation-solution" rel="nofollow">Joren's Website</a></p>

<p>It allows you to check to see if an email address has been correctly entered, but I have 2 email addresses that I want to validate in the form.</p>

<p>Any idea how I would do this?</p>

<p>I've tried adding in email = $("#youremail"); as well as the one that's currently in the code which is email = $("#receiveremail"); but it only works for one.</p>

<pre><code>$(document).ready(function(){
    // Place ID's of all required fields here.
    required = ["youremail", "name", "receiveremail", "message"];

    // If using an ID other than #email or #error then replace it here
    email = $("#receiveremail");
    errornotice = $("#error");

    // The text to show up within a field when it is incorrect
    emptyerror = "Please fill out this field";
    emailerror = "Not a vaild email";
});
</code></pre>
