Can you provide a testpage? Jörn
On Mon, Dec 1, 2008 at 2:47 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hey guys, > i read about that trailing comma error in several other posts, but i > just can't fix that problem. IE7 still submits the form even if the > required fields are empty. > > Here's my jquery code: > > Hope you can help me. thanks in advance. > > var validator = $("#adventsform").validate({ > > rules: { > anrede: { > required: true > }, > vorname:{ > required: true > }, > nachname: { > required: true > }, > email: { > required: true > }, > agb: { > required: true > } > }, > messages: { > anrede: "Bitte ausfuellen", > vorname: "Bitte ausfuellen", > nachname: "Bitte ausfuellen", > email: "Bitte ausfuellen", > agb: "Die AGBs muessen akzeptiert werden" > }, > // the errorPlacement has to take the table layout into account > errorPlacement: function(error, element){ > if (element.is(":radio")) > error.appendTo(element.next().next()); > else > if (element.is(":checkbox")) > error.appendTo(element.next().next()); > else > error.appendTo(element.next()); > }, > > // set this class to error-labels to indicate valid fields > success: function(label){ > // set as text for IE > //alert("passt"); > label.html(" ").addClass("checked"); > } > }); >