title: passing php variable in onClick function
body: <p>I want to pass the php variable value in onClick function.
  When i pass the php variable, in the UI i am getting the variable itself instead I need the value in the variable.</p>
  
  <p>Below is code snippet, please help me.</p>
  
  <pre><code>&lt;?php
  print '&lt;td&gt;'; 
  $node  = $name-&gt;item(0)-&gt;nodeValue;
  $insert= "cubicle"."$node&lt;br&gt;";
  Echo '&lt;a href= "#" onClick= showDetails("$node");&gt;'. $insert .'&lt;/a&gt; ';
  print '&lt;/td&gt;';
  ?&gt;
  </code></pre>