{"id":7068,"date":"2014-05-19T04:11:44","date_gmt":"2014-05-19T04:11:44","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/19\/checkvalidity-causing-error-in-ie9-and-below-collection-of-common-programming-errors\/"},"modified":"2014-05-19T04:11:44","modified_gmt":"2014-05-19T04:11:44","slug":"checkvalidity-causing-error-in-ie9-and-below-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/19\/checkvalidity-causing-error-in-ie9-and-below-collection-of-common-programming-errors\/","title":{"rendered":"checkValidity() causing error in IE9 and below-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m using jQuery&#8217;s <code>checkValidity()<\/code> in ajax form submissions and everything works fine until the form has a <code>select<\/code> element.<\/p>\n<p>For example, I have a page that shows data based on the user&#8217;s choice of row count. (Select how many rows of data) &#8230; 10, 20, 30, etc. That&#8217;s the only form on the page. They select, and all is fine in every browser except IE 9 and below.<\/p>\n<p>Here&#8217;s the line in the form submission script that&#8217;s causing the error:<\/p>\n<pre><code>if (!$(this).get(0).checkValidity()) {return false;}\n<\/code><\/pre>\n<p>The error that is producing in IE is:<\/p>\n<blockquote>\n<p>SCRIPT438: Object doesn&#8217;t support property or method &#8216;checkValidity&#8217;<\/p>\n<\/blockquote>\n<p>Anyone have an idea of how I can solve this? Works fine in every other browser.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using jQuery&#8217;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&#8217;s choice of row count. (Select how many rows of data) &#8230; 10, 20, 30, etc. That&#8217;s the only form on the page. They [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7068","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7068"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7068\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}