SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    clear a form textbox when entered

    i have a search textbox on my form.. with the value "Search here.."

    when my user clicks into it how can i make that search here go away.?

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Location
    Toronto, Canada
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Put this line into your form code:

    onfocus="this.value=''"


    FL

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Moved to the appropriate forum.
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

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