How do I access the properties of the parent button of a collection of buttons?
How do I access the properties of the parent button of a collection of buttons?

I have a situation where I have a collection of buttons that become a dropdown under the parent button. When one of the buttons in the collection is selected I want to change the class or text of the parent button of the collection so that a user would know that one of the sub buttons has actually been chosen.
`
$.fn.dataTable.ext.buttons.filterSponsor = {extend:'collection',
text: 'By Sponsors',
fade: true,
autoClose:true,
buttons: [
@foreach (var item in Model.Sponsors)
{
<text>
{
name: '@item.Value',
text: '@item.Name',
data: @item.Value,
action: function (e, dt, node, config) {
var field = $('#FilterSponsorID');
sponsorFunc(config.data, field);
this.draw(true);
}
},
</text>
}
]
};
```