I am currently working on creating a sign-up page using HTML and JavaScript. However, I am facing an issue with making the input tag required in the HTML code. The following code snippet does not seem to be working as expected:
<input type="email" required name="email" placeholder="Email"/>
Below are my snippets of HTML, CSS, and JavaScript:
// jQuery time
var current_fs, next_fs, previous_fs;
var left, opacity, scale;
var animating;
$(".next").click(function () {
// Code for moving onto the next step
});
$(".previous").click(function () {
// Code for going back to the previous step
});
$(".submit").click(function () {
return false;
})
<!DOCTYPE html>
<html>
// Other HTML code here
</html>
I need assistance in making the email field, password field, and confirm password field mandatory so that the user cannot proceed to the next step without filling out these details. Can someone help me understand why the "required" attribute along with "type='email'" is not working in
<input type="email" required name="email" placeholder="Email"/>
? Thank you for your understanding regarding any errors in my question.