I have login script where are inputs email and password. Email input value is set "email" but when It's not correct i added a script which change value to "email not correct" but i wanted it have color red. Code below do not work. How do i change it?
<input id="email" type="text" name="logemail" placeholder="Email"> echo '<span class=\'wrong\'> <script> document.getElementById("email").value = "incorrect email"; </script> </span>'; CSS:
.wrong{ color:red; }
id="nick"?