Answers for "how to check a radio button"

4

check if radio button is checked

$('#element').click(function() {
   if($('#radio_button').is(':checked')) { alert("it's checked"); }
});
Posted by: Guest on October-13-2020
8

html radio button checked

<input type="radio" id="huey" name="drone" value="huey"
         checked> 
<!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio-->
Posted by: Guest on May-17-2020
3

radio by default selected

checked="checked"
Posted by: Guest on May-18-2020

Code answers related to "how to check a radio button"

Browse Popular Code Answers by Language