title: Object doesn't support this property or method on error on IE 8
body: <p>I have this function in javascript file which works perfectly fine in Firefox / Chrome but for some reason throwing  'Object doesn't support this property or method'  error on IE 8 .</p>
  
  <p>Any ideas how should I rewrite the function so it is working in all sort of IEs?</p>
  
  <pre><code>validateStep1: function () {
  
       var digitOnly=/^\d/;
       var result =  $('#Step1DropDownIndustry option:selected').val() == 0 || 
                     $('#Step1DropDownIndustry option:selected').val() == 0 ||
                     $('#Step1Annual').val().trim() == '' || 
                     $('#Step1Annual').val().search(digitOnly) == -1
       return result;
  },
  </code></pre>
  
  <p>Cheers</p>