jzaefferer/jquery-validation — Issue #272:  'settings' is null or not an object in IE8 with dynamically loaded forms
Author: MisterHux
Created: 2011-12-01 16:20:41+00:00
State: open

Hi, I'm new to javascript and jquery development, and I don't know how I ended up getting this, but when dynamically adding a form to a page and then adding validation to it. The first time through it works perfectly, but when I go to add a form a second time I get this error: 'settings' is null or not an object on line **316** (jquery.validate version 1.9) and it only happens in IE. I tried removing all validators from all forms, from just the specific form then using jquery to remove the form element (its the "same" form that gets added, same id), and using the *validator.unobtrusive.parseDynamicContent* from http://xhalent.wordpress.com/2011/01/24/applying-unobtrusive-validation-to-dynamic-content/ and sill get the error.

Can I suggest adding a null check for settings? Or maybe I'm just doing something wrong.