Log in

View Full Version : Resolved Clearing what one enters in a form text field



xtiano77
08-16-2009, 02:48 AM
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.

Schmoopy
08-16-2009, 09:27 AM
You can do this without PHP by using the "autocomplete" attribute like this:



<input type="text" id="name" autocomplete=off>


Hope this helps.