tibin mathew
tibin mathew

Reputation: 2084

disabling property of a textbox

when i click on a text box or start typing in a text box, its showing the previously entered string below it, i want to disable this property of a text box, how can i do this?

please help me

Thanks

Upvotes: 1

Views: 185

Answers (4)

Natrium
Natrium

Reputation: 31174

this is a browser-issue

In Firefox: Extra -> Options --> Privacy --> Remember search and formhistory (or something like that, I have Firefox in Dutch)

For IE: http://www.computerhope.com/issues/ch000604.htm

Upvotes: 1

rahul
rahul

Reputation: 187060

Try this

<input type="textbox" id="myTextBox" autocomplete="off" /> 

For an asp textbox

<asp:TextBox AutoCompleteType="Disabled" runat="server" ID="myBox"></asp:TextBox>

See autocomplete attribute

The autocomplete attribute applies to the text, password, select, textarea, date-related, time-related, numeric, email, and uri controls. The attribute takes two values, on and off. The default, when the attribute is not specified, is on.

Upvotes: 0

PatrikAkerstrand
PatrikAkerstrand

Reputation: 45721

You can try setting autocomplete="off" as an attribute on the <input type="text">. Note that this isn't a standard attribute though, and will break HTML validation.

Upvotes: 2

Gipsy King
Gipsy King

Reputation: 1577

Set the autocomplete attribute in the form element to "off". Said attribute is not standard, but should work on most browsers. See this

Upvotes: 0

Related Questions