title: I want to pass two parameters in onclick, one is a function & another is a div id
body: <p>I want to sen two id's when onclick occurs like now when div 2 is clicked I want to pass just the id of the 2nd div too &amp; then write script for the 2nd div.
  is it possible?  if so, then how? any example?</p>
  
  <pre><code>&lt;div id="1st_div"&gt;&lt;/div&gt;
  &lt;div id="2nd_div"&gt;
       &lt;div id="inner_of_2nd_div" onclick="myfunction('1st_div')"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>