Why .prop will not set the attribute value in the example? Bootstrap 3.1.1 and jQuery 2.1 are used.
HTML
<div class="btn-group" data-toggle="buttons">
    <label class="btn btn-primary">
        <input type="checkbox"> Option 1
    </label>
    <label class="btn btn-primary">
        <input type="checkbox"> Option 2
    </label>
    <label class="btn btn-primary">
        <input type="checkbox"> Option 3
    </label>
</div>
jQuery
$('label').click
(
    function()
    {
        // Does not set attribute
        $(this).prop('foo','bar');
    }
);
 
     
     
     
    