This question is locked. New answers and comments are not allowed.
I get a javascript error on page load when using the MVC Jquery Validation.
Stepping though the javascript file leads me to these 2 lines:
The validationContext.FormId is 'Gridform' yet there is not <form> tag on the page with and id of 'Gridform' when the page loads. Thus when the we attempt to get the validationCallbacks it throws an error since formElement is null.
I can add a dummy <form id="Gridform"></form> tag to the page and this gets rid of the error on page load but then none of my client side validation works.
Im using version: 2010.2.825, is this fixed in a newer version or is there a work around?
Stepping though the javascript file leads me to these 2 lines:
var formElement = document.getElementById(validationContext.FormId); var registeredValidatorCallbacks = formElement.validationCallbacks;The validationContext.FormId is 'Gridform' yet there is not <form> tag on the page with and id of 'Gridform' when the page loads. Thus when the we attempt to get the validationCallbacks it throws an error since formElement is null.
I can add a dummy <form id="Gridform"></form> tag to the page and this gets rid of the error on page load but then none of my client side validation works.
Im using version: 2010.2.825, is this fixed in a newer version or is there a work around?