0

What is the error in my gender validation program?

When I click into "male" and submit it works as I expected but when I select female and submit, it doesn't work. Please help me out. https://code.sololearn.com/WK9kZPYxlIa0/?ref=app

9th Apr 2022, 3:46 PM
Logician S
Logician S - avatar
1 Antwort
+ 2
Missing braces if(c[i].checked) { valid=true; break; }
9th Apr 2022, 3:59 PM
Jayakrishna 🇮🇳