bool isChecked for checkbox and radiobutton