title: jQuery error = SyntaxError: missing : after property id
body: <p>There seems to be a lot of these errors on SO but I can't find any to relate to.</p>
  
  <p>The error is: <code>SyntaxError: missing : after property id</code> and it's complaining about this line: <code>var msg = "";</code> (Line 3).</p>
  
  <pre><code>function checkSubmission()({
  
      var msg = "";
  
      $('#validation').html(msg);
  
      if ($("#lms_name").val().length&lt;=0){    
          msg+="LMS Name Required.&lt;br/&gt;";
      }else{
  
          var value = $('#lms_name').val();
          var regex = new RegExp(/^[a-zA-Z0-9 ]{2,}$/);
          if(value.match(regex)) {
  
          } else {
               msg+="&lt;b&gt;Error on LMS name : &lt;/b&gt;Numbers and letters only. Minimum of two characters.&lt;br/&gt;";
          }
      }
  
      //lots more code here...
  </code></pre>
  
  <p>Any ideas? FYI I'm a complete newbie (for now...).</p>
  
  <p>Thanks in advance!</p>