jquery ui - What class to add to buttonset elements to show select status after a group select action? -


i have toolbar of checkboxes grouped via buttonset() call. if 1 checkbox selected, i'd set entire group selected, , deselect on second click event.

i have click handler instanciated

$("#category_all").click(function(e){    if ($("#category_1").is(":checked")) {     $(".category_selector").prop("checked", false);     $(".category_selector").removeclass("ui-state-active");    } else {     $(".category_selector").prop("checked", true);     $(".category_selector").addclass("ui-state-active");   } }); 

the check state change applied buttonset elements, rest of elements maintain same styling. i've tried "checked" class, no result.

what jquery ui class added buttonset group show selected?

try calling refresh method after setting checked property. outlined in docs here


Comments