Bootstrap – Checks & radios


Bootstrap – Checkbox and Radios



”;



This chapter will discuss about checkbox and radios utilities provided by Bootstrap. Checkboxes allow you to select one or more alternatives from a list, whereas radio buttons allow you to choose only one.


Approach

  • Bootstrap provides wrapper class .form-check for improved layout and behavior of browser default checkboxes and radios elements. It also allows greater customization and cross browser consistency.

  • .form-check-label class is used to show checkbox labels.

  • .form-check-input class is used for input type checkbox.

  • Structurally, the input and label act as siblings.


Bootstrap”s custom icons are used to display checked or indeterminate states.


Checkbox

Checkboxes select one or several options from a list.