title: how to pass parameter to javascript function
body: <p>I have the following javascript.</p>
  
  <pre><code>&lt;script&gt;
  function getMethod(id){alert(id);}
  
  &lt;/script&gt;
  </code></pre>
  
  <p>following is html,</p>
  
  <pre><code>&lt;table id="tbl1"&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;input type="button" onclick="getMethod()"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I need to pass table id "tbl1" to javascript method getMethod on click event of html button. so what should I do? what I want is something like this,(Passing table ID onclick method's parameters)</p>
  
  <pre><code>&lt;input type="button" onclick="getMethod('$("tbl1").ID')"/&gt;
  </code></pre>
  
  <p>how can I do this?</p>
  
  <p>Thanks</p>