<input type="text" onkeypress="return buyukHarf(event);" class="green" name="f1"/>
is it possible to change the class green to something else when the area is clicked? Or any other way to change the border color when clicked?
Thanks in advance…
In the case of form elements, I’d use
focus()andblur()over aclick()handler.Also, try to avoid using inline javascript as you have done in your example.
Focus/Blur example: