Validating Password and Retype Password
问题 I am having two textboxes like this : <p> <input type="text" name="NPassword" placeholder="New Password"/></p> <input type="text" name="RNPassword" placeholder="Retype New Password"/> Now,what i want is that on every keypress of Retype New Password It should check if both are same or not.If yes then in green color display it on right side of RNPassword,Otherwise in red color display that both are not same and also disable the submit button of the page.How this can be done please help. 回答1: