title: Trying to send two values from php to JS
body: <p>Im retrieving a value from my db, displays on screen as a <strong>0.</strong></p>
  
  <pre><code>echo "&lt;article&gt;" . $gr_display['status'] . "&lt;/article&gt;"; 
  </code></pre>
  
  <p>Then when im clicking on this DIV i want to send both status and id to my JS function, edit. The ID of this object is <strong>79</strong></p>
  
  <pre><code>echo "&lt;div onclick='edit( " . $gr_display['status'] . "." . $gr_display['id'] . " )' &lt;/div&gt;";
  </code></pre>
  
  <p>Then the start of my script</p>
  
  <pre><code>function edit(status, id) { 
  console.log(status, id ); some code later }
  </code></pre>
  
  <p>But im ending up with the result that id and status is combined into one sett of value, leaving the other one "undefined"</p>
  
  <p>From console log: <strong>0.79 undefined</strong></p>