Answers for "cant set radio or checkbox to checked"

5

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
0

radio checked on start

<!--HTML solution-->
<input type="radio" checked/>
<!--XHTML solution-->
<input type="radio" checked="checked" />
Posted by: Guest on August-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language