[jQuery] Validator plugin - ie problem

[jQuery] Validator plugin - ie problem


Hi!
I have made a very complex page with three diffrent forms which each
has validation. The main form's submit event is fired with a button
click event. In FF this works fine. In IE the validation gives me an
error saying 'settings is null or not an object'. I have spent hours
trying diffrent workarounds but I can't find a solution. My client is
on my back and I'm getting desperate. Please if someone can help me, I
will be very, very greatful!
$('#mainForm').validate({
errorLabelContainer: $('#errorList'),
wrapper: 'li',
rules: {
LZA145A: {
required: true,
Range: true
},
LZA13YA: {
required: true
},
LZA13EA: {
required: true
}
},
messages: {
LZA145A: {
required: 'Var god ange ett datum.'
},
LZA13YA: {
required: 'Var god ange ett spelställe.'
},
LZA13EA: {
required: 'Var god ange en anordnare.'
}
},
submitHandler: function(form) {
//alert('Main form valid');
var datum = $('#mainForm input
[name=LZA145A]').val();
var spelstalle = $('#mainForm input
[name=LZA13YA]').val();
var anordnare = $('#mainForm input
[name=LZA13EA]').val();
form.submit();
$('input[name=LZA145A]').val('');
$('#location_choose select').val('');
$('#location_choose select').val('');
}
});
$('#allFormsBtn').click(function() {
$('#mainForm').trigger('submit');
});
/Best regards Lisa