radio-no-js-variations.txt 583 B

123456789101112131415
  1. // Checked on page load:
  2. - add 'checked="checked"' attribute to input
  3. // Disabled on page load:
  4. - add 'disabled="disabled"' attribute to input
  5. // Toggling with radio buttons uses plain old Bootstrap Collapse:
  6. - See: http://getbootstrap.com/javascript/#collapse
  7. - add `data-toggle="collapse"`
  8. - add `data-target="{{selector}}"`
  9. - optionally consider adding aria attributes `aria-expanded` and `aria-controls`
  10. // Highlighting radio buttons:
  11. - add 'highlight' class to the `.radio` or `.radio-inline` wrapper. This will highlight the radio buttons on check / uncheck.