title: Only on Chrome I got this error: Uncaught TypeError: Illegal constructor
body: <p>When I did load jQuery on Chrome I will receive this error: "Uncaught TypeError: Illegal constructor"</p>
  
  <p>On rest browsers (IE, Mozilla) it's working fine. Here is couple screen shots from my PC. It's a same error.</p>
  
  <p><a href="https://i.stack.imgur.com/8WhDQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8WhDQ.png" alt="first example"></a><br>
  <sub>(source: <a href="http://vaziuoju.lt/bugs/Untitled.png" rel="nofollow noreferrer">vaziuoju.lt</a>)</sub>  </p>
  
  <p><a href="https://i.stack.imgur.com/e1nKY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e1nKY.png" alt="second example"></a></p>
  
  <p>Code:</p>
  
  <pre><code>$(Document).ready (function () {
  
      $("p.warning").hide();
  
      $( "#newAdsForm" ).submit(function( event ) {
  
  
          var vailidEmail = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
  
          var vardas = $("#vardas").val();                    var vardasTest = false;
          var vardas = vardas.replace(/&lt;(?:.|\n)*?&gt;/gm, '');
          var pastas = $("#pastas").val();                    var pastasTest = false;
          var phone = $("#phone").val();                      var phoneTest = false;
          var kada = $("#inputField").val();                  var kadaTest = false;
          var kaina = $("#kaina").val();                      var kainaTest = false;
          var kaina = kaina.replace(/&lt;(?:.|\n)*?&gt;/gm, '');
          var skelbimas = $("#skelbimas").val();              var skelbimasTest = false;
          var skelbimas = skelbimas.replace(/&lt;(?:.|\n)*?&gt;/gm, '');
  
          if (vardas == "") {
              $("p#vardas").fadeOut("fast", function () {
                  $("p#vardas").text ("Vardas būtinas!");
              });
              $("p#vardas").fadeIn("fast");
              vardasTest = false;
          } else {
              $("p#vardas").fadeOut("fast");
              vardasTest = true;
          }
  
          if (pastas == "") {
              $("p#pastas").fadeOut("fast", function () {
                  $("p#pastas").text ("El. paštas būtinas!");
              });
              $("p#pastas").fadeIn("fast");
              pastasTest = false;
          } else if (!pastas.match(vailidEmail)) {
              $("p#pastas").fadeOut("fast", function () {
                  $("p#pastas").text("Negaliojantis pašto adresas!");
              });
              $("p#pastas").fadeIn("fast");
              pastasTest = false;
          } else {
              $("p#pastas").fadeOut("fast");
              pastasTest = true;
          }
  
          if (phone == "") {
              $("p#phone").fadeOut("fast", function () {
                  $("p#phone").text ("Telefono numeris būtinas!");
              });
              $("p#phone").fadeIn("fast");
              phoneTest = false;
          }
          else if (!phone.match(/^[0-9-+]+$/)) {
              $("p#phone").fadeOut("fast", function () {
                  $("p#phone").text ("Neteisingas Telefono numeris!");
              });
              $("p#phone").fadeIn("fast");
              phoneTest = false;
          } else  {
              $("p#phone").fadeOut("fast");
              phoneTest = true;
          }
  
          var comp = kada.split('-');
          if ((comp[0].length != 4) || (comp[1].length != 2) || (comp[2].length != 2) || (kada.length != 10)) {
              $("p#kada").fadeOut("fast", function () {
                  $("p#kada").text ("Blogai nurodyta data!");
              });
              $("p#kada").fadeIn("fast");
              kadaTest = false;
          } else if ((!comp[0].match(/^\d+$/)) || (!comp[1].match(/^\d+$/)) || (!comp[2].match(/^\d+$/))) {
              $("p#kada").fadeOut("fast", function () {
                  $("p#kada").text ("Blogai nurodyta data2!");
              });
              $("p#kada").fadeIn("fast");
              kadaTest = false;
          } else {
              $("p#kada").fadeOut("fast");
              kadaTest = true;
          }
  
          if (kaina.length != 0) {
  
  
              var number = /^\-{0,1}(?:[0-9]+){0,1}(?:\.[0-9]+){0,1}$/i;
              var regex = RegExp(number);
  
              if (!regex.test(input) &amp;&amp; input.length&gt;0) {
                  $("p#kaina").fadeOut("fast", function () {
                      $("p#kaina").text ("Neteisinga kaina!");
                  });
                  $("p#kaina").fadeIn("fast");
                  kainaTest = false;
              } else {
                  $("p#kaina").fadeOut("fast");
                  kainaTest = true;
              } 
          } else {
              $("p#kaina").fadeOut("fast");
              kainaTest = true;
          } 
  
          if (vardasTest &amp;&amp; pastasTest &amp;&amp; phoneTest &amp;&amp; kadaTest &amp;&amp; kainaTest) return true;
          else return false;
  
      });
  
  });
  </code></pre>
  
  <p>Part of HTML code</p>
  
  <pre><code>   &lt;tr&gt;&lt;td&gt;Vardas&lt;/td&gt;&lt;td&gt;&lt;input type = "text" class = "newAdd" name = "vardas" id = "vardas" &lt;?php if (isset($_SESSION ['vardas'])) echo "value = '".$_SESSION ['vardas']; ?&gt;'/&gt;&lt;p class = "warning" id = "vardas"&gt;Vardas būtinas!&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>Any ideas how I can fix it?</p>