admin管理员组文章数量:1026380
I'm using HTML code like this:
<form method="post" action="#">
<input type="text" name="inputFIeld" id="someVal" value="" />
<button id="submitFun" type="submit">Dodaj</button>
</form>
The only thing I do is preventDefault
on submit button click and then I make an ajax call to the server.
It works just fine on all browsers except chrome. Autoplete on chrome just doesn't work.
I'm using HTML code like this:
<form method="post" action="#">
<input type="text" name="inputFIeld" id="someVal" value="" />
<button id="submitFun" type="submit">Dodaj</button>
</form>
The only thing I do is preventDefault
on submit button click and then I make an ajax call to the server.
It works just fine on all browsers except chrome. Autoplete on chrome just doesn't work.
Share Improve this question edited Mar 11, 2019 at 21:09 Zobia Kanwal 4,7734 gold badges17 silver badges38 bronze badges asked Sep 26, 2013 at 14:24 dinodsaurusdinodsaurus 5,0954 gold badges21 silver badges24 bronze badges 3- that drop down thing on input fields – dinodsaurus Commented Sep 26, 2013 at 14:27
- I solved this chrome bug using invisible iframe. [stackoverflow./questions/8306640/… [1]: stackoverflow./questions/8306640/… – dinodsaurus Commented Sep 27, 2013 at 9:45
-
1
Can't reproduce (8+ years later),
onclick="event.preventDefault()"
keeps text in Chrome. – tevemadar Commented Dec 3, 2021 at 13:40
1 Answer
Reset to default 0I find a link on chrome site :
Chrome : You should have to activate autoplete :
https://support.google./chrome/answer/142893?hl=en
I'm using HTML code like this:
<form method="post" action="#">
<input type="text" name="inputFIeld" id="someVal" value="" />
<button id="submitFun" type="submit">Dodaj</button>
</form>
The only thing I do is preventDefault
on submit button click and then I make an ajax call to the server.
It works just fine on all browsers except chrome. Autoplete on chrome just doesn't work.
I'm using HTML code like this:
<form method="post" action="#">
<input type="text" name="inputFIeld" id="someVal" value="" />
<button id="submitFun" type="submit">Dodaj</button>
</form>
The only thing I do is preventDefault
on submit button click and then I make an ajax call to the server.
It works just fine on all browsers except chrome. Autoplete on chrome just doesn't work.
Share Improve this question edited Mar 11, 2019 at 21:09 Zobia Kanwal 4,7734 gold badges17 silver badges38 bronze badges asked Sep 26, 2013 at 14:24 dinodsaurusdinodsaurus 5,0954 gold badges21 silver badges24 bronze badges 3- that drop down thing on input fields – dinodsaurus Commented Sep 26, 2013 at 14:27
- I solved this chrome bug using invisible iframe. [stackoverflow./questions/8306640/… [1]: stackoverflow./questions/8306640/… – dinodsaurus Commented Sep 27, 2013 at 9:45
-
1
Can't reproduce (8+ years later),
onclick="event.preventDefault()"
keeps text in Chrome. – tevemadar Commented Dec 3, 2021 at 13:40
1 Answer
Reset to default 0I find a link on chrome site :
Chrome : You should have to activate autoplete :
https://support.google./chrome/answer/142893?hl=en
本文标签: javascriptChrome doesn39t remember input field valueStack Overflow
版权声明:本文标题:javascript - Chrome doesn't remember input field value - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745641191a2160757.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论