add data attribute in lightning:button code example
Example: data-userid attribute lightning
<a href="javascript:void(0);" onclick="{!c.selected}"
data-record="{!sr.Id}"/>
_______________________________________________________________
In Controller.js
selected: function(cmp,event,helper)
{
var recId = event.currentTarget.dataset.record;
}