How to put an event on the text in a <td>?

How to put an event on the text in a <td>?

Hi all,

is it possible to select a text in a <td> and then put an event on it? I can put an event when a <td> or <th> or ... is clicked, but not on the text in it. Here's my trial code:

  1. $('th.select').text().click(function(){
  2.     // execute code
  3. });
Perhaps it's an dummy question, but I realy can't figure it out how to do it