title: IE error .JavaScript runtime error: Object doesn't support property or method 'preventDefault'
body: <p>I have the following code inside my asp.net mvc web application:-</p>
  
  <pre><code>&lt;script&gt;
  function validateForm(e) {
      if ($("[name=ip]").val() == "" &amp;&amp; $("[name=mac]").val() == "") jAlert('Please enter atleast one search value.', 'Message');
      e.preventDefault();
  }
   &lt;/script&gt; 
  </code></pre>
  
  <p>but when accessing this Script on IE i will get the following error:-</p>
  
  <blockquote>
    <p>0x800a01b6 - JavaScript runtime error: Object doesn't support property
    or method 'preventDefault'</p>
  </blockquote>
  
  <p>while when accessing the web page that uses this script using Firefox, chrome it will work fine, can anyone advice please ?</p>