Wednesday, April 15, 2020

JavaScript Radio button validation

var option=document.getElementsByName('Gender');
if (!(option[0].checked || option[1].checked)) {
    alert
("Please Select Your Gender");
   
return false;
}

source https://stackoverflow.com/questions/10339073/radio-button-validation-in-javascript

No comments:

Post a Comment

Python library for all standard data structures.

  pygorithm-module-in-python/ # Help on package pygorithm.data_structures help ( data_structures ) Output: NAME pygorithm.data_structur...