1

Are there any jQuery plugins or other methods by which to add placeholder text to a disabled input field in IE?

In particular, I've tried both Replaceholder and Sparkle (which includes a placeholder polyfill). With either one, disabling an input field via script causes its placeholder text to disappear.

I could try hacking something together, but are there any scripts or plugins that support this out of the box?

daGUY
  • 27,055
  • 29
  • 75
  • 119
  • I don't understand the issue? If you have an element like ``, and you want to put text inside of that, you can simply do `$('input[type=text]').val("Some Placeholder Text...");` – Ohgodwhy Jun 25 '12 at 14:12
  • I'm using a script to add placeholder support for IE; in other words, so I can do `` and have that work in IE automatically. The scripts I've tried cause the placeholder to disappear if I disable the field. – daGUY Jun 25 '12 at 14:21
  • Possible duplicate: http://stackoverflow.com/questions/5522164/input-placeholders-for-internet-explorer – Heretic Monkey Jun 25 '12 at 14:34
  • @daGUY [so what you're saying is you want this?](http://jsfiddle.net/DauFf/) – Ohgodwhy Jun 25 '12 at 14:36
  • @Ohgodwhy yes, but in IE! Try that in IE and you'll see the input has no placeholder text. – daGUY Jun 25 '12 at 16:34

0 Answers0