Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check if radio button is checked

if(document.getElementById('gender_Male').checked) {
  //Male radio button is checked
}else if(document.getElementById('gender_Female').checked) {
  //Female radio button is checked
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #check #radio #button #checked
ADD COMMENT
Topic
Name
1+7 =