Results 1 to 3 of 3

Thread: How to put the form labels on the right?

  1. #1
    Join Date
    Nov 2009
    Location
    Isfahan, Iran
    Posts
    229
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default How to put the form labels on the right?

    Hi,

    Please look at the following comment form:
    http://docs.jquery.com/Plugins/Validation

    There's a similar one on this page:
    http://jquery.bassistance.de/validate/demo/

    I'd like to put the labels on the right of text input fields and display the error messages under input fields.
    Tried almost anything, but to no avail.

    Any help is greatly appreciated!
    Rain Lover

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Both of these work, not sure about with the script or not though:

    Code:
    <input type="text" name="bob" id="bob" value="aloo"><label for="bob">Bobalooie</label>
    and:

    Code:
    <label for="bob"><input type="text" name="bob" id="bob" value="aloo">Bobalooie</label>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2009
    Location
    Isfahan, Iran
    Posts
    229
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default

    I just found the solution:
    http://docs.jquery.com/Plugins/Valid...idate#toptions

    Thanks anyway!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •