title: How do I use event.preventDefault with KnockoutJs click event handlers?
body: <p>I have the following table row as a script template in KnockoutJs:</p>
  
  <pre><code>    &lt;script id="inboxTemplate" type="text/html"&gt;           
      &lt;tr data-bind="click: function() { viewInboxModel.selectAction($data); }"&gt;                                 
          &lt;td&gt;...&lt;/td&gt;                 
          &lt;td&gt;${ CreateDate }&lt;/td&gt;               
          &lt;td data-bind="click: function(e){ e.preventDefault();viewInboxModel.clearAction($data); }"&gt;&lt;img src="/Content/images/delete.png" height="16px" width="16px"&gt; &lt;/td&gt;
      &lt;/tr&gt;            
      &lt;/script&gt;
  </code></pre>
  
  <p>The problem is when I click the delete button, it is also running the selectAction() method. I've tried using e.preventDefault() in both selectAction click handler and the clearAction() clicker handler to no avail. Is there anyway KnockoutJs can prevent the underlying row from now being clicked if the delete button is clicked?</p>