Apologies if this has been asked, I can't seem to find the exact same question, so here goes.
I have created a form, in html, that I basically want the form to look at what the user has typed as their email address, and then have to retype but flag up if it doesn't match.
<form> <div class="input-container"> <input type="text" id="Username" required="required"/> <label for="Username">@Username</label> <div class="bar"></div> </div> <div class="input-container"> <input type="email" id="email" required="required"/> <label for="email">Email</label> <div class="bar"></div> </div> <div class="input-container"> <input type="email" id="Repeat email" required="required"/> <label for="Repeat email">Repeat Email</label> <div class="bar"></div> </div> <div class="button-container"> <button><span>Next</span></button> </div> </form> JS
$('.toggle').on('click', function() { $('.container').stop().addClass('active'); }); $('.close').on('click', function() { $('.container').stop().removeClass('active'); }); Any help would be greatly appreciated and please treat me as a complete novice when it comes to forms.