Answers for "javascript radio button onclick show hide"

6

jQuery check a radio button

// jQuery version 1.6 or above use:  
$("#myRadioID").prop("checked", true);
 
//jQuery versions below 1.6 use:
$("#myRadioID").attr('checked', 'checked');
Posted by: Guest on July-25-2019
6

how to detect a button click in javascript

if(document.getElementById('button').clicked == true)
{
   alert("button was clicked");
}
Posted by: Guest on December-10-2019
-1

javascript uncheck radio button

document.getElementById("radioButtonID").checked = false; //uncheck a radio button
document.getElementById("radioButtonID").checked = true; //check a radio button
Posted by: Guest on August-02-2019

Code answers related to "javascript radio button onclick show hide"

Code answers related to "Javascript"

Browse Popular Code Answers by Language