Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

placeholder not working in IE9 [duplicate]

Possible Duplicate:
placeholder in ie9

I'm using placeholder for my textboxes. The problem is that in firefox and chrome they show up but in IE9 it's not working. I searched on the internet but none of the solutions worked for me. Any ideas?

<input class="text" type="text" name="name" value="" placeholder="Name" required /><br />
like image 783
Bibu Avatar asked Sep 26 '12 10:09

Bibu


2 Answers

If you mean the placeholder attribute, it is not supported in IE9: http://caniuse.com/#search=placeholder. You will need to use another solution to mimic the behavior.

like image 143
Raymond Camden Avatar answered Nov 08 '22 05:11

Raymond Camden


IE9 doesn't support HTML5's placeholder.

You need to do it with javascript.

Check this plugin.

like image 5
xdazz Avatar answered Nov 08 '22 04:11

xdazz