Radio Or Checkbox Validation

  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Radio Or Checkbox Validation as PDF for free.

More details

  • Words: 122
  • Pages: 1
The JavaScript code is kept within the head tag of the page. See the validation <script type="text/javascript"> function validate(form) { // Checking if at least one period button is selected. Or not. if (!document.form1.sex[0].checked && !document.form1.sex[1].checked){ alert("Please Select Sex"); return false;} if(!document.form1.agree.checked){alert("Please Read the guidelines and check the box below"); return false; } return true; } To display the period button and check box see the code below.
SexMale Female
I agree to terms and conditions

Related Documents

Checkbox
November 2019 14
Checkbox
November 2019 11
Validation
June 2020 20
Control Checkbox
July 2020 13
Checkbox Ozellikleri
June 2020 7