checked only applies for checkboxes