5

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 />
Community
  • 1
  • 1
Bibu
  • 201
  • 3
  • 10
  • 25
  • We need the code to help you. Without it, we haven't a clue what you are doing. – David Sep 26 '12 at 10:55
  • Let's ask a genie in a bottle. Wait - event the genie can't tell without the code. – acme Sep 26 '12 at 10:57
  • I've edited my question..it's a simple placeholder tag. Don't know whats the fss about the code.:)) – Bibu Sep 26 '12 at 11:06
  • @Bibu The first fuss about it is, you are talking about the placeholder **attribute** not the **tag**. So without the code no-one really knows that you are meaning something different than what you are asking. ;-) – acme Sep 26 '12 at 13:38

2 Answers2

5

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.

Raymond Camden
  • 10,661
  • 3
  • 34
  • 68
5

IE9 doesn't support HTML5's placeholder.

You need to do it with javascript.

Check this plugin.

xdazz
  • 158,678
  • 38
  • 247
  • 274