[SOLVED] Validate Plugin problem

[SOLVED] Validate Plugin problem

http://plugins.jquery.com/project/validate

Got this form:
  1. <form class="cmxform" id="commentForm" action="contact.php" method="post">
      <input type="hidden" name="mode" value="send">
      <table border=0 cellpadding=5 cellspacing=3>
        <tr>
         <td colspan="2">
          <em>*</em>denotes required field
          </td>
        </tr>
        <tr>
          <td><label for="cname">Your Name:</label></td>
          <td><em>*</em><input id="cname" name="name" size="25" class="required" minlength="2" value=""/></td>
        </tr>
        <tr>
          <td><label for="cemail">Your Email:</label></td>
          <td><em>*</em><input id="electronicmail" name="electronicmail" size="25" class="required email" value=""/></td>
        </tr>
        <tr>
          <td><label for="ccomment">Your Phone Number:</label></td>
          <td><em>*</em><input id="cphone" name="phone" size="25"  class="required" value="" /></td>
        </tr>
        <tr>
          <td valign="top"><label for="ccomment">Comments:</label></td>
          <td><em>*</em><textarea id="ccomments" name="comments" rows=10 cols=40 wrap="soft" class="required"></textarea></td>
        </tr>
        <tr>
          <td></td>
          <td><input class="submit" type="submit" value="Send"/></td>
        </tr>
      </table>
    </form>





























Trying to use the Validate plugin:
  1. $("#commentForm").validate({
        rules: {
            electronicmail: {
              "required",
              email: true
            },
            name: "required",
            phone: "required",
            comments: "required"
        }
    });










and getting this error:
  1. invalid object initializer
      electronicmail: {

    http://localhost/js/global.js Line 129 (




What am I doing wrong?