Question #36   Submitted by Answiki on 05/18/2020 at 02:37:02 PM UTC

How to uncheck a radio button in jQuery?

Answer   Submitted by Answiki on 07/25/2022 at 09:21:07 PM UTC

In jQuery, you can check or uncheck a checkbox element or a radio button using the .prop() method to set the checked property as on the following example:


// Check 
$( "#id" ).prop( "checked", true );

// Uncheck
$( "#id" ).prop( "checked", false );

8 events in history
Answer by Answiki on 07/25/2022 at 09:21:07 PM

In jQuery, you can check or uncheck a checkbox element or a radio button using the .prop() method to set the checked property as on the following example:


// Check 
$( "#id" ).prop( "checked", true );

// Uncheck
$( "#id" ).prop( "checked", false );

Question by Answiki 11/01/2021 at 09:01:42 PM
How to unchecked radio button in jQuery?
Question by Answiki 05/18/2020 at 02:37:18 PM
How to check / uncheck a radio button in jQuery?
Question by Answiki 05/18/2020 at 02:37:09 PM
How to check a radio button in jQuery?
Question by Answiki 05/18/2020 at 02:37:02 PM
How to uncheck a radio button in jQuery?
Question by Answiki 05/18/2020 at 02:36:31 PM
How to check / uncheck a checkbox input in jQuery?
Question by Answiki 05/18/2020 at 02:36:18 PM
How to check a checkbox input in jQuery?
Answer by Answiki on 05/18/2020 at 02:36:03 PM

In jQuery, you can check or uncheck a checkbox element or a radio button using the .prop() method as on the following example:


// Check 
$( "#id" ).prop( "checked", true );

// Uncheck
$( "#id" ).prop( "checked", false );

# ID Query URL Count

Icons proudly provided by Friconix.