0

I have used the place holder function in textboxes as a watermark in my form. But the problem is that, the same thing is not working in IE 8 browser. I cant see the watermark text in IE 8 browser.

Please see my asp code, as I have used.

HTML :-

 <asp:TextBox ID="txtFirstName" runat="server" CssClass="txtFldName" placeholder="Enter your Full Name"></asp:TextBox>

Javascript for the the placeholder:-

<script src="../js/jquery.placeholder.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $('input', 'txtFirstName').placeholder();
    });
</script>
Rahul Sutar
  • 260
  • 9
  • 36

2 Answers2

0

I'm not sure why txtAccountNumber is there. The second parameter usually means "context", a reference to an element from which the selector should start looking for an element. Try removing that.

Joseph
  • 117,725
  • 30
  • 181
  • 234
0

I think placeholder works only in IE10+

Check here: http://www.w3schools.com/tags/att_input_placeholder.asp

TamarG
  • 3,522
  • 12
  • 44
  • 74