Function User is suppose to be input field and click on the 'submit' button. All fields are mandatory. Hence, user will not be able to navigate to the next page if they do not input any fields.
Issue:
I have set each field to be "required", however, I was still able navigate myself to the next page. How is this possible and I couldn't find what I have actually done wrong
Code:
<form style=" alignment-adjust: autofocus" class="container" action="Page5" method="POST">
Name: <input type="text" name="name" required><br><br>
Email: <input type="text" name="email" required><br><br>
<input type="image" src="image/Submit.png" alt="Submit" width="250px" height="50px" onClick = "Page5()">
</form>
<script>
function Page5() {
$("#page4").hide();
$("#page5").show();
}
</script>