title: How send 2 variable to JavaScript Function from Onclick event in Same JavaScript file
body: <p>I am calling a JavaScript Function inside the same Javascript file on OnClick. right now I am sending 1 variable to that method, I need to send 2 variable. Any Syntax that I am trying is not working. </p>
  
  <p>That is my call:</p>
  
  <pre><code> headerDiv.innerHTML += "&lt;div id='sort' data-sort='false'&gt;&lt;a onClick= SortData('" + header  + "')&gt;" + header + '&amp;#8595;' + "&lt;/a&gt;&lt;/div&gt;";
  </code></pre>
  
  <p>I need to send ascSort as well. 
  this is my JavaScript function:</p>
  
  <pre><code>  function SortData(header, ascSort) {
     ...
     }
  </code></pre>