2015-06-27 37 views
-2

瀏覽器通常會跟蹤在html輸入字段中輸入的文本。有沒有辦法通過JavaScript或jQuery禁用文本字段的彈出式預覽?javascript - 禁用html輸入字段的彈出式預覽

enter image description here

+1

重複的問題。 http://stackoverflow.com/questions/2530/how-do-you-disable-browser-autocomplete-on-web-form-field-input-tag – Mitul

+0

在發佈問題之前在Google上做一些Google搜索 – Shafeeque

回答

2

試試這個:

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

編碼愉快:)

0

使用javascript:

yourInput.setAttribute("autocomplete", "off"); 

jQuery的

$("input").attr("autocomplete", "off");