How to attach dialog to table rows?

How to attach dialog to table rows?

Hello,

I am a complete newbie and I am trying to learn jquery ui as quickly as I can (so please excuse any completely newbie question)

I have a web page that has a table with rows in it (obviously).  Each row in the table pertains to a large chunk of text that is displayed in truncated form using slice().  I would like to be able to click on a row of the table, and have that bring up a textarea in a dialog which would allow the user to view/edit the text.  When the user clicks OK, it would then write that information back to a database with a function.

The database I/O and such are not that important to me right now - I can probably figure that out for myself.  However, I cannot figure out how to get a dialog to appear for each row that would have the contents of that row in the box? 

This seems like a pretty straightforward and widely done thing, but in all my searching I cannot find a reference to how to do this.  If anyone could get me started that would be outstanding!