how to check the value of sumbitted form field against an variable array
<p>I have a simple post code check, I'd to check the submitted value against a pre-made variable, how can I do this in Jquery,</p>

<p>any help would be appreciated.</p>

<pre><code>  &lt;form method="post" action="#"&gt;
     &lt;input name="textfield" type="text" id="textfield" size="8" maxlength="8" /&gt;
     &lt;input type="submit" value="submit"&gt;
 &lt;/form&gt;
</code></pre>

<p>and my variable contains B1,B2 and B3.</p>

<p>if the post code entered is similar to the variable an ok message is sent otherwise a no message is sent.</p>

<p>thanks</p>
