validate errorPlacement help

validate errorPlacement help

The way I have my form set up, I have a line break between the input fields and their labels. By default, the Validation plugin puts errors after the input field. I am trying to put the errors next to the labels so it looks like...

Name: This field is required.
[                     ]

I've read the documentation and tried modifying the errorPlacement example, but I never got it to work the way I want it. Here is the form I am using.

  1.       <form action="index.php#contact" method="post" id="feedback">
  2.         <p class="first">
  3.           <label for="name">Name: </label><br />
  4.           <input id="name" name="name" type="text" class="required" maxlength="64" />
  5.         </p>
  6.         <p>
  7.           <label for="email">Email: </label><br />
  8.           <input id="email" name="email" type="email" class="required email" maxlength="254" />
  9.         </p>
  10.         <p>
  11.           <label for="subject">Subject: </label><br />
  12.           <input id="subject" name="subject" type="text" class="required" maxlength="128" />
  13.         </p>
  14.         <p>
  15.           <label for="message">Message: </label><br />
  16.           <textarea id="message" name="message" class="required" maxlength="1024"></textarea>
  17.         </p>
  18.         <button type="submit" name="send" />Send Message</button>
  19.       </form>