if we are click on input box text field that predefined text has to hide and we have to get a chance to enter a value in that input box how to do that one please help me for that.........
Printable View
if we are click on input box text field that predefined text has to hide and we have to get a chance to enter a value in that input box how to do that one please help me for that.........
The simplest way to do this is:
Unfortunately the placeholder attribute isn't supported in older versions of IE so you would need a bit of JavaScript to get the same effect in those cases.Code:<input id="iptUser" name="iptUser" type="text" placeholder="Username" />