How do you check or uncheck a checkbox input or radio button?

Last updated:9/22/2020 4:41:51 PM

1 Answers

AVADHESH PATEL
AVADHESH PATEL

1.$('#num1').attr('checked', true);// Check #num1

2.$('#num1').attr('checked', false);// Uncheck #num1

3.$("#num1").attr('checked', 'checked');// Check #num1

4.$("#num1").removeAttr('checked');// Uncheck #num1

Answer