title: One click handler for multiple buttons and stop propagating event up to parent?
body: <p>I'm generating a bunch of "li" items as a result of an ajax call. They look like:</p>
  
  <pre><code>&lt;li&gt;
    &lt;p&gt;Hello result 1&lt;/p&gt;
    &lt;button&gt;remove&lt;/button&gt;
  &lt;/li&gt;    
  &lt;li&gt;
    &lt;p&gt;Hello result 2&lt;/p&gt;
    &lt;button&gt;remove&lt;/button&gt;
  &lt;/li&gt;
  ...
  </code></pre>
  
  <p>can I create a single click handler that will get called when any one of the "li" item "button" elements gets clicked, and will also stop propagating the click event up to the "li" parent? Something like:</p>
  
  <pre><code>function btnClicked() {
      var liItem = this.parent; // ideally is the &lt;li&gt; whose button was clicked.
      return true; // don't let click event go up to &lt;li&gt; parent?
  }
  </code></pre>
  
  <p>----------------- Edit ---------------------</p>
  
  <p>Also, I'm not sure if I'm going to use the button element, might use a clickable div as a button instead - the same techniques should work for both though, right?</p>
  
  <p>Thank you</p>