Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery Validation + IE6

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28887
    thealscott
    Member

    Hey gang,

    Long time reader, first time poster.

    I am having an issue when using the JQuery validation plugin when it comes to IE6. If I use the inline method of giving the form elements the appropriate validation classes (required, email etc.) it seems to work fine.

    However, if I do the rules and messages in the script thusly:

    Code:
    $(“.registerForm”).validate({

    rules: {
    ctl00$Content$Firstname: {
    required:true,
    }
    },
    messages: {
    ctl00$Content$Firstname: {
    required:”Please enter your first name.”,
    }
    }
    });

    It breaks JS on the page in IE6. Any ideas? I am something of a newcomer to JQuery and this issue is very frustrating.

    #74901
    thealscott
    Member

    Never mind, I figured it out. In my foolishness I failed to realise I had some extraneous commas floating about between values. Apparently IE6 fails to parse these.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.