I'd like to know how to delete placeholder
from input
when clicking inside it. When searching here I saw answers on how to delete value
but I did not find anything about placeholder
.
I would like help that you do not need to call the function inside input
, eg:
<input type="text" id="input" value="Value" onClick="func()"/>
My Code:
<form action="enviar.php" method="post" class="wpcf7-form">
<input type="text" name="nome" value="" size="40" class="classe_form_1" placeholder="Seu nome (obrigatório)"><br>
<input type="email" name="email" value="" size="40" class="classe_form_1" placeholder="Seu e-mail (obrigatório)"><br>
<input type="text" name="assunto" value="" size="40" class="classe_form_1" placeholder="Assunto (obrigatório)"><br>
<textarea name="mensagem" cols="40" rows="10" class="classe_form_2" placeholder="Mensagem (obrigatório)"></textarea><br>
<button type="submit" class="botao_contato" id="botao-contato">Enviar</button>
</form>