Results 1 to 2 of 2

Thread: html form value onfocus

  1. #1
    Join Date
    Jan 2008
    Posts
    441
    Thanks
    67
    Thanked 4 Times in 4 Posts

    Default html form value onfocus

    i have a form that has a title inside like this
    Code:
    <input type="text" name=prodname id=prodname size=25 value="product name" onfocus="this.value=''" style="border:none" />
    so when you click into it the value disappears.

    i have several input fields on the same page, how can i make it so that if nothing was entered then the value re-appears?

    basically, i dont want a person clicking into field 1 and not entering anything then skipping around different fields and field 1 ~ x is empty without a title

  2. #2
    Join Date
    Jan 2008
    Posts
    441
    Thanks
    67
    Thanked 4 Times in 4 Posts

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
  •