SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Mar 2004
    Posts
    260
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Issue with jQuery Form Validation Plugin

    Hi,

    I've got a form that uses the jquery.validate.js plugin (http://jqueryvalidation.org)

    http://astrumeducation.com/en/test

    There seems to be an issue with the validation of the Gender field. When I disable the CSS I get an error message if no Gender is chosen, though oddly enough it appears in between the radio button and the label.

    However if CSS is applied, then there is no error message. I don't even see anything when I look at the code in Firebug.

    Would anyone have an idea what's going on here. I'd love the error message to display (and preferably not between the radio button and the label).

    Many thanks!

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by spirelli View Post
    Would anyone have an idea what's going on here.
    This is what seems to be causing the problem:

    Code css:
    input[type="radio"],
    input[type="checkbox"] {
      display: none;
    }
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •