title: Error in JavaScript/Jquery code: Unexpected identifier
body: <p>Need help. Been pulling my hair out trying to figure out why this code is erroring at the last IF statement... If i delete </p>
  
  <pre><code>if(tagsfield &amp;&amp; editor &amp;&amp; titlefield &amp;&amp; node_select !==="None"){
  $("#postform").submit();
      }
  </code></pre>
  
  <p>Then the javascript/jquery loads. When included...all of my other java does not load and i get a..
  "uncaught syntax error: unexpected identifier", at the jquery submit line..</p>
  
  <p>Full code..</p>
  
  <pre><code>$(document).ready(function(){
  var node_select  = $("#assigned").text();
  
  $( "#submit" ).click(function() {
  var editor =    $('#edit').froalaEditor('html.get');    
  var tagsfield = $('#mySingleField').val();
  var titlefield = $('#title').val();
  
  if(!editor){
  document.getElementById("content_validate").innerHTML = "&lt;h5&gt;&lt;span class=\"label label-danger label-validate\"&gt;Required&lt;/span&gt;&lt;/h5&gt;";
  
  }
  if(!tagsfield){
  document.getElementById("tag_validate").innerHTML = "&lt;h5&gt;&lt;span class=\"label label-danger label-validate\"&gt;Required&lt;/span&gt;&lt;/h5&gt;";
  }
  
  if(!titlefield){
  document.getElementById("title_validate").innerHTML = "&lt;h5&gt;&lt;span class=\"label label-danger label-validate\"&gt;Required&lt;/span&gt;&lt;/h5&gt;";
  }
  if(node_select == "None"){
  document.getElementById("folder_validate").innerHTML = "&lt;h5&gt;&lt;span class=\"label label-danger label-validate\"&gt;Required&lt;/span&gt;&lt;/h5&gt;";
  }
  
  if(tagsfield &amp;&amp; editor &amp;&amp; titlefield &amp;&amp; node_select !=="None"){
  $("#postform").submit();
  }
  
  }); 
  });
  </code></pre>
  
  <p>The #postform is confirmed in my code...For some odd reason. This code worked fine locally and only started to fail once i put it on the server.</p>
  
  <pre><code>&lt;form action="" name ="arts" id="postform" method="POST"&gt;
  &lt;input type="text" id="title" name="title" class="form-control"   placeholder="Title" value=""&gt;
  &lt;input name="tags" id="mySingleField" value="apple,banana,pear" type ="hidden"&gt; 
  &lt;textarea id="edit" name="content" &gt;&lt;!--blah blah--&gt;&lt;/textarea&gt;
  &lt;/form&gt;
  &lt;button type="button" class="btn btn-default" name="submit" id="submit"&gt;Post&lt;/button&gt;
  </code></pre>