Here's my form submission code:
$('#mainForm').submit();
All the solutions for disabling client side validation that I've seen have involved updating an attribute on the button that's pressed. But in my code there is no button press. The form is submitted using javascript.
How do I switch off client side validation on the client before submitting a form with code?