I\'m getting the following error when trying to validate my form:
\'this.0.form\' is null or not an object
I\'m using the latest jQuery and jQu
Your jQuery selector for the form omits the #
sign. The jQuery ID selector should include a #
like so:
function SubmitForm() {
$("#UrIntakeForm").valid(); // "#UrIntakeForm" instead of "UrIntakeForm"
}
Otherwise you are applying the valid()
method to an empty jQuery object, which results with the error you've specified.
Your jQuery selector is wrong
function SubmitForm() {
$("#UrIntakeForm").valid();
}
add a hash (#) to the selector to identify it as an id