Multiple links to $().dialog

Multiple links to $().dialog

Hi

I'm new to jquery and I'd like some guidance please.

I have a web page which has some dynamic elements displayed from a database table.  The number of elements can vary depending on the contents of the table.

Each element has a link to bring up a dialog with 3 options.

eg:
<DIV id="1">content<link to dialog></DIV>
<DIV id="2">content<link to dialog></DIV>
...
<DIV id="n">content<link to dialog></DIV>

Each link calls the same dialog, with the same options, but the option selected only applies to the calling DIV

What is the best way to do this?

Many thanks

Paresh