Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Placeholder internet explorer 11 not showing

I have a problem with placeholders in IE 11 even though it says in compatibility table that IE 11 can show placeholders. I am not talking about focus on input. There are no placeholders also when I am not focused on input box.

IE Version: 11.0.9600

I have no css applied on the placeholders.

In other browsers placeholder is showing.

I tried also compatibility using meta tags, no change.

<input id="textinput" name="name" type="text" placeholder="Name" class="form-control input-md" /></input>
like image 994
marhyno Avatar asked Oct 23 '25 12:10

marhyno


1 Answers

Okay folks, I just discovered that my lovely company has installed IE 11 but with forced IE 8 view - my god.

  • Nevertheless, I solved the problem with this jQuery script, now it is working. https://codepen.io/engza/pen/DptoH

whole code in the link

$(function(){$("input, textarea").placeholder()

like image 156
marhyno Avatar answered Oct 27 '25 03:10

marhyno