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.
- <form action="index.php#contact" method="post" id="feedback">
- <p class="first">
- <label for="name">Name: </label><br />
- <input id="name" name="name" type="text" class="required" maxlength="64" />
- </p>
- <p>
- <label for="email">Email: </label><br />
- <input id="email" name="email" type="email" class="required email" maxlength="254" />
- </p>
- <p>
- <label for="subject">Subject: </label><br />
- <input id="subject" name="subject" type="text" class="required" maxlength="128" />
- </p>
- <p>
- <label for="message">Message: </label><br />
- <textarea id="message" name="message" class="required" maxlength="1024"></textarea>
- </p>
- <button type="submit" name="send" />Send Message</button>
- </form>