-5

This is a simple code to display search on textbox. but it does not works on internet explorer. why?

<div id="rightsearch_div1">
   <input id="text_box" placeholder="search..." type="text"  />
</div>
wahid
  • 1,150
  • 1
  • 9
  • 16
  • 1
    The `placeholder` attribute was not implemented until IE 10. – Tim M. Mar 08 '13 at 06:16
  • 2
    -1. Please dont write this kind of question. I tested on Netscape Navigator a suprising dont work too. :) First read documentation, second try Google and then use SO!!! – Xearinox Mar 08 '13 at 06:19

2 Answers2

2

It works in IE10.

Things don't work in browsers that didn't implement it when they were released.

Niet the Dark Absol
  • 320,036
  • 81
  • 464
  • 592
1

It should work in the latest IE. I like using this site to check cross-browser compatibility on these things: http://caniuse.com/#feat=input-placeholder

Sanketh Katta
  • 5,961
  • 2
  • 29
  • 30