title: how to detect which button is clicked using jQuery
body: <p>how to detect which button is clicked using jQuery</p>
  
  <pre><code>&lt;div id="dBlock"&gt;
   &lt;div id="dCalc"&gt;
    &lt;input id="firstNumber" type="text" maxlength="3" /&gt;
    &lt;input id="secondNumber" type="text" maxlength="3" /&gt;
    &lt;input id="btn1" type="button" value="Add" /&gt;
    &lt;input id="btn2" type="button" value="Subtract" /&gt;
    &lt;input id="btn3" type="button" value="Multiply" /&gt;
    &lt;input id="btn4" type="button" value="Divide" /&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Note: above "dCalc" block is added dynamically...</p>