jQuery check if two passwords match -
so i'm busy on system, includes registration users. need jquery check if password , password confirmation matching. i've come with: $("#pass2").keypress(function() { if ($("#pass1").val() != $("#pass2").val()) { $(".nosamepass").fadein('slow'); $("#choosepass > input").css("border", "5px solid #ff0033"); } else { $(".nosamepass").fadeout('slow'); $("#choosepass > input").css("border", "5px solid #232323"); } }); .nosamepass { display: none; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div id="choosepass"> <h1>{{goodgoing}}<span id="name2"></span></h1> <h2>{{choosepassword}}</h2> <h3>{{almostthere}}</h3> <input name="pass1" id=...