Checkboxes and radio buttons are used for selecting options in forms.
Checkbox allows multiple selections, while radio buttons allow only one selection.
jQuery can check whether these inputs are selected or not.
This checks whether the checkbox is selected.
This is commonly used for terms and conditions validation.
This retrieves the selected radio button value.
Checkbox & Radio Notes:
- Use :checked selector
- Checkbox supports multiple values
- Radio allows one selection
- Important in form validation