I have a Twitter Bootstrap buttons-radio and hook an onclick event to it. But how do I check which of the buttons that got triggered?
My first thought was to simply
I would use a change event not a click like this:
$('input[name="name-of-radio-group"]').change( function() { alert($(this).val()) })