jquery---validate the form
<p>the html code:</p>

<pre><code>&lt;labelName&lt;/label&gt;
  &lt;input type="text" name="name" id="name" size="30" value="" class="text-input" /&gt;
  &lt;label class="error" for="name" id="name_error"&gt;This field is required.&lt;/label&gt;
</code></pre>

<p>the js code:</p>

<pre><code>               var name = $("input#name").val();
    if (name == "") {
    $("label#name_error").show();
    $("input#name").focus();
    return false;
  }
</code></pre>

<p>why use the return false;? could i use exit? thank you.</p>
