I have radio button input, text field input and password field input and one submit button.
What I want to happen is, if I click the submit button without choosing or entering those three form, window alert will show saying "You need to fill up the (radio button, text field and password field)" something like that. How can I do that?
This is my code
<form>
<input type="radio" name="optradio">Menu 1
<input type="radio" name="optradio">Menu 2 <br>
<input type="text"><br>
<input type="password"><br>
<input type="submit" value="Submit" onclick="alert('Hello! I am an alert box!')">
</form>