www.webdeveloper.com
Results 1 to 2 of 2

Thread: hiii friends i want one smal helpl

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Posts
    20

    hiii friends i want one smal helpl

    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.........

  2. #2
    Join Date
    Mar 2005
    Location
    Behind you...
    Posts
    862
    The simplest way to do this is:
    Code:
    <input id="iptUser" name="iptUser" type="text" placeholder="Username" />
    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.
    "Given billions of tries, could a spilled bottle of ink ever fall into the words of Shakespeare?"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles