Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 288 Bytes

how-do-i-check-uncheck-a-checkbox-input-or-radio-button.md

File metadata and controls

13 lines (10 loc) · 288 Bytes
<script>{ "title": "How do I check/uncheck a checkbox input or radio button?" }</script>

You can check or uncheck a checkbox element or a radio button using the .prop() method:

// Check #x $( "#x" ).prop( "checked", true ); // Uncheck #x $( "#x" ).prop( "checked", false ); 
close