开发者

Disabling storing what you have entered before?

开发者 https://www.devze.com 2023-01-15 22:55 出处:网络
Im开发者_开发知识库 having a search field. Now when i search for names, it stores it.. Stores it you know so you can just press key down and enter then get the name you entered previously.. Im talking

Im开发者_开发知识库 having a search field. Now when i search for names, it stores it.. Stores it you know so you can just press key down and enter then get the name you entered previously.. Im talking about the normal dropdown that comes when you have searched for some stuff in google example.. then you can key down and see everything you have searched before.

Is there any way to disable that to my search field? because i already have a ajax autosuggest function, and its not looking good when that comes..

Or any idea to bypass this/come around?


You can disable autocomplete. Keep in mind that autocomplete is a non-standard attribute, so it may not always work.

autocomplete="off"


You could use the autocomplete attribute on forms or input elements.

See:

  • https://developer.mozilla.org/en/How_to_Turn_Off_Form_Autocompletion
  • http://msdn.microsoft.com/en-us/library/ms533486%28VS.85%29.aspx
0

精彩评论

暂无评论...
验证码 换一张
取 消