Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to change innerhtml color

document.getElementById("usernameError").innerHTML = "<span style='color: red;'>
  
  
  
  
this.style.color =  "white";
 
PREVIOUS NEXT
Tagged: #change #innerhtml #color
ADD COMMENT
Topic
Name
2+9 =