It’s possible to retrieve the ‘selected’ buttons in a jquery ui buttonset build with checkboxes (to allow multiselect) with :
$('#format').buttonset();
$('#format').click(function() {
var text = "";
$('#format').find('label[aria-pressed|="true"]').each(function() {
text += $(this).attr("for") + "-";
});
$('#selected').html(text);
});
This is working fine in Chrome, IE, Safari but in Firefox the clicked checkbox is not taken into account. You can check this in jsFiddle.
Try:
See my updated jsFiddle http://jsfiddle.net/qLWNd/