jQuery dialog and PHP grid - Passing row value

jQuery dialog and PHP grid - Passing row value

Hi guys,
I'm trying to open a dialog box that when edit button is clicked on each row it will pass the row id to the box.. 

I was able to pass row id to the edit form but with every click, id changes.

here is my code:







 $('.details').dialog({ autoOpen: false, }); $('a.pop').click(function(e) { e.preventDefault(); $("#details").dialog('open');  
});
Many thanks.