Workaround For Clicks In A .Selectable()?

Workaround For Clicks In A .Selectable()?

Hello,

For a part of my website, I had to set a .selectable() on the <body> tag of the webpage and filter the elements. But now clicks wherever on the webpage are not registered as clicks. The .selectable() method of jQuery probably catch the click and does something with it ...

HTML:
  1. <body>
  2. <h2>Selectable table cells</h2>
  3. <table>
  4. <tr>
  5. <td>Cell1</td>
  6. <td>Cell2</td>
  7. <td>Cell3</td>
  8. <td>Cell4</td>
  9. </tr>
  10. <tr>
  11. <td>Cell5</td>
  12. <td>Cell6</td>
  13. <td>Cell7</td>
  14. <td>Cell8</td>
  15. </tr>
  16. </table>
  17. <br />
  18. <h3>If you <span>click here</span> an alert box should open.</h3>

  19. </body>
JAVASCRIPT:
  1. $(document).ready(function() {
  2.   
  3. $('span').live('click', function() {
  4. alert('hi there');
  5. });
  6. $('body').selectable({
  7. filter: "td"
  8. });
  9.   
  10. });

I have created a testpage so you can take a look: Testpage

The problem is that functions like .blur() doesn't work anymore, and I work with the jQuery plugin .editable where you submit the updated value of an input 'onblur'.

Is there a workaround? For example, do something with .mousedown() to trigger the submit?

Christophe