I have some checkboxes in a button set and I want to use Jquery to check one of the checkboxes.
It works, however, the visual representation of the checkbox does not update. ie, after executing $('#chk').attr('checked',true);
the checked value is true, but the checkbox apears unchecked.
Demoed here: http://jsfiddle.net/kralco626/jzVjT/1/
Thanks!
You need to call the refresh
method on the buttonset to update the visual state after programmatic changes to the checked
state, like this:
$("#test").buttonset("refresh");
You can test it out here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With