I use jQuery Datatable for listing records and add an Action button (Edit) for editing the record on a modal dialog. If I select a row I can get th
jQuery Datatable
Action
If the id is on the parent container then find it's value and use it. If it's a sibling then do the same.