You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
patrickhlauke
changed the title
Button plugins for checkbox doesn't apply "checked"-attribute to checkbox
Button plugin doesn't apply "checked"-attribute to checkbox/radio button
Jan 12, 2016
Actually, on further analysis no browser ever changes the checked attribute in the DOM (even on vanillla checkboxes/radio buttons), so just doing something like "inspect element" and looking at the DOM, or querying with document.getElementById('option1').getAttribute('checked') or similar, will not show any change. It's the checkedproperty that changes, however ... (e.g. document.getElementById('option1').checked), and this works properly with the button plugin.
The button example as described in the documentation (http://v4-alpha.getbootstrap.com/components/buttons/#checkbox-and-radio-buttons) doesn't apply the
checked
-attribute to the actual checkbox and only appliesactive
to the button.The text was updated successfully, but these errors were encountered: