title: HTML error message on button text
body: <p>The following HTML code is throwing error message.</p>
  
  <pre><code>&lt;button name="btnSave" id="btnSave" onclick="/chbs/adm/HallNamesValidation.jsp" 
      class="btn btn-success"&gt;Save to Database&lt;/button&gt;
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>Uncaught SyntaxError: Invalid regular expression flags
  </code></pre>
  
  <p>I am attempting to invoke <code>HallNamesValidation.jsp</code> without using <code>&lt;form action=""&gt;</code> because there are other <code>&lt;button&gt;</code>s on the page.</p>
  
  <p>I have managed to get it working using AJAX as follows, but I'd like to know how I can make this work using my original method because with Ajax I need to add data which is an array to be processed with <code>jsp getParameterValues()</code>:</p>
  
  <pre><code>$('#btnSave').click(function() { 
    $.ajax({ 
      url: '/chbs/adm/HallNamesValidation.jsp', 
      success: function (data) { console.log(data); } 
    }); 
  });
  </code></pre>