[jQuery] jQuery Validation Errors
In FF3 I am having no issues with the plugin, but in IE (only tested
7) I am running into the following problem.
http://i34.tinypic.com/2vnovic.png - Line:662, Error: 'undefined' is
null or not an object. The offending piece of code goes over to jQuery
1.2.6 and this is where it errors.
data: function( elem, name, data ) {
elem = elem == window ?
windowData :
elem;
var id = elem[ expando ];
elem is what is undefined
Here is the code I'm using to execute the validation:
validator = $('#form1').validate();
var input = $('ul.MDProgramsList :input').eq(0);
input.each(function() { $(this).rules('add', { required:
true }); });
valid = validator.form();
input.rules('remove');
When I make elem = to windowData it then proceeds to another error.
I'm not quite sure what is going on to cause this problem in IE.