I have this input, we will clean it every time we press it from the inside.
Issue: I want to clear only when value = exemplo@exemplo.com
& lt; Script type = "text / javascript" & gt; The function is clear (target) {target.value = ""; } & Lt; / Script & gt; & Lt; Input type = "text" name = "email" value = "exemplo@exemplo.com" size = "30" onfocus = "clear (this)" & gt; Can anyone help me do this? I do not know how to compare, I tried it before but got no success.
& lt; Script type = "text / javascript" & gt; Function is empty (this target) {if (target.value == 'exemplo@exemplo.com') {target.value = "";}} Is this really your search?
No comments:
Post a Comment