This question already has an answer here:
- CSS rule based on content 5 answers
My text is in <div id="result"> Code is ok </div> or Code is not ok, depending to the return js. How can I change the text color in red if Code is not ok, and in green if Code is ok ?
Aucun commentaire:
Enregistrer un commentaire