checkValidity() causing error in IE9 and below-Collection of common programming errors
I’m using jQuery’s checkValidity()
in ajax form submissions and everything works fine until the form has a select
element.
For example, I have a page that shows data based on the user’s choice of row count. (Select how many rows of data) … 10, 20, 30, etc. That’s the only form on the page. They select, and all is fine in every browser except IE 9 and below.
Here’s the line in the form submission script that’s causing the error:
if (!$(this).get(0).checkValidity()) {return false;}
The error that is producing in IE is:
SCRIPT438: Object doesn’t support property or method ‘checkValidity’
Anyone have an idea of how I can solve this? Works fine in every other browser.