Results 1 to 2 of 2

Thread: Clearing what one enters in a form text field

  1. #1
    Join Date
    Sep 2008
    Location
    Midland, Texas
    Posts
    52
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Thumbs up Clearing what one enters in a form text field

    Hope you folks don't mind entertaining a quick question. How could I clear a form text input field so it won't remember text typed by previous users. I want to add that this seems to happen only in Firefox and not on IE7. Thanks in advance for help.
    Last edited by xtiano77; 08-18-2009 at 01:14 AM.

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    You can do this without PHP by using the "autocomplete" attribute like this:

    Code:
    <input type="text" id="name" autocomplete=off>
    Hope this helps.

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
  •