jquery validation plugin, IE7: settings is null or not an object
Dear all,
I have a problem that I can't seem to find a solution for.
I have a set of radio buttons that I validate with the jquery validation plugin to make sure that they are selected.I want the user to choose Resit (Yes/No), Standard glh (Yes/No) and then pressing "Finish". An error should be reported if any of them are empty. I dynamically wrap a form tag around the table where the radio buttons are located and then validate that form. This works fine in Firefox and Chrome but not in IE7. I debug the code while using IE 7 and Visual studio says:
"Microsoft JScript error: 'settings' is null or not an object". It occurs on line 302 in jquery validation plugin 1.6:
-
function delegate(event) {
var validator = $.data(this[0].form, "validator");
validator.settings["on" + event.type] && validator.settings["on" + event.type].call(validator, this[0] );
}
I have tried this with validation plugin 1.6 and 1.7 and jquery 1.3.2 and 1.4.2. The combination 1.6, 1.3.2 and 1.7 , 1.4.2 both report the problem.
I don't know what's causing it and I would appreciate and help in solving this. I include sample code below.
Thank you,
/S