javascript - Chrome doesn't remember input field value - Stack Overflow

I'm using HTML code like this:<form method="post" action="#"><inp

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
Add a ment  | 

1 Answer 1

Reset to default 0

I find a link on chrome site :

Chrome : You should have to activate autoplete :

https://support.google./chrome/answer/142893?hl=en

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745641193a4637702.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信