Votes
Answers
Views
Question
4
2
77
We have a web page that displays a message when a field has invalid data in it, and we need to validate that the correct message is being displayed. Sample HTML code is: Username: document.getElementById("usrname").setCustomValidity("Username is required!"); How do I validate that th...