www.webdeveloper.com
Results 1 to 3 of 3

Thread: Remove text from textbox

  1. #1
    Join Date
    Jul 2003
    Posts
    2

    Remove text from textbox

    Anyone got the JavaScript for removing text from textboxes.

    You know whene users on my webpage clickinside the textbox i have typed in to describe it desepeare when users click the textbox.

    Kjetil

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,278
    <input type="text" value="foo" onfocus="this.value = ''; this.onfocus = function () {}">
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Jul 2003
    Posts
    2

    Thank you.

    Thank you for helping me. That was fast.

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