Reputation: 2084
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
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
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>
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
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
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