Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check radio button is checked jquery

$(document).ready(function(){
  $('#submit_button').click(function() {
    if (!$("input[name='name']:checked").val()) {
       alert('Nothing is checked!');
        return false;
    }
    else {
      alert('One of the radio buttons is checked!');
    }
  });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #radio #button #checked #jquery
ADD COMMENT
Topic
Name
2+2 =