Problem with jquery .submit() and variables
<p>I am not sure what to do and why it is not working it is my first attempt at something like this.</p>

<p>Here is a fiddle of it <a href="http://jsfiddle.net/ProjectV1/LVPtN/" rel="nofollow">http://jsfiddle.net/ProjectV1/LVPtN/</a></p>

<p>You will notice in javascript I have a var error which is by default false.</p>

<p>If there is an error it is true.</p>

<p>I have displayed the value of error next to each input on my form.</p>

<p>If the variable error is false it should submit the form and false it shouldn't.</p>

<p>The problem arises when an error occurs, and is then corrected the form will not submit.</p>

<p>Look at the fiddle. The form directs to google just for testing.</p>
