Russel Monzur Russel Monzur - 2 months ago 11
CSS Question

Placeholder value not showing in chrome?

Here is my code. I don't understand why placeholder not shown in explorer. Please help.

HTML CODE

<form method="post" >
<input type="text" class="field" name="nom" placeholder="Votre Nom">
<input type="text" class="field" name="telephone" placeholder="Téléphone">
<center><input type="submit" id="submit_btn" value="Valider" class="btn_submit"></center>
</form>

nad nad
Answer

try OnFocus rather than using placeholder it will work

<input name="nom" type="text" value="Votre Nom" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;">

Let me know whether it works or not

Comments