remove validation error after it has been corrected in html code example
Example: remove validation error after it has been corrected in html
if (!validateUsername())
{
document.getElementById('uname').innerHTML = "Please enter a username";
}else {
document.getElementById('uname').innerHTML = "";
}