get attribute value from table row

get attribute value from table row

hi..
 
I need to access a couple attribute values from a table when a button is clicked and I'm not sure how to access this information..
 

for instance..
<tbody>
<tr firstAttr='something' secondAttr='something'>
    <td></td>....
</tr>
<tr firstAttr='something' secondAttr='something'>
    <td></td>....
</tr>
</tbody>
 
when a button is clicked I need to grab those attribute values ..help?!?