cancel onclick event on the table using jquery
<p>I added a jquery onclick eventhandler to the table as follows</p>

<pre><code>$('#tableid').bind('click', ClickHandler);

function ClickHandler(event) {

   //here i am checking whether the cell that the user clicked is valid to enter data.
   //if not, I would like to cancel the event.

   e.preventDefault(); //this is not working. the cell that the user clicked still has focus.
   return false; //this is also not working. the cell that the user clicked still has focus.

}
</code></pre>

<p>How do I cancel the click event on a table?</p>
