Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if one of the radio button is checked


      if ($('input[name='+ radioName +']:checked').length) {
           // at least one of the radio buttons was checked
           return true; // allow whatever action would normally happen to continue
      }
      else {
           // no radio button was checked
           return false; // stop whatever action would normally happen
      }
    
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #radio #button #checked
ADD COMMENT
Topic
Name
2+2 =