[問題] HTML input欄位顯示輸入過的字串
請問要在jsp檔內的html input欄位,設定只要滑鼠focus到該欄位,該欄位就會自動
有個下拉式選單,呈顯過去輸入到該欄位的字串。該怎麼做?
我目前試了actocomplete='on';而網路上很多教學,也都是這樣講。
但對我這邊卻沒有用,不管在該欄位輸入多少東西,都不會跳出那個下拉式選單。
我的input欄位長這樣:
<div class="container">
<div class="div-center">
<h2>PTT Crawler</h2>
<form action="ForwardToResultServlet.do" method="post">
<div class="form-group">
<label for="id">ID:</label>
<input type="text" class="form-control" id="id" name="id">
</div>
<button type="submit" class="btn btn-primary">Query</button>
</form>
</div>
</div>
然後我想這或許跟瀏覽器快取有關,所以也找了有關html快取的設定方式,但找到的
大都是如何取消快取,瀏覽器本來就會開啟快取。所以這問題並不是因為沒有快取。
所以就跟快取無關??
這樣的話,要怎麼修改呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.169.115.86
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1541943936.A.606.html
→
11/11 22:25,
5年前
, 1F
11/11 22:25, 1F
→
11/11 23:22,
5年前
, 2F
11/11 23:22, 2F
→
11/11 23:37,
5年前
, 3F
11/11 23:37, 3F
有
→
11/12 00:57,
5年前
, 4F
11/12 00:57, 4F
※ 編輯: lueichun (1.167.48.132), 11/12/2018 10:33:15