Is there a W3C valid way to disable autocomplete in a HTML form?

后端 未结 18 1559
心在旅途
心在旅途 2020-11-22 05:58

When using the xhtml1-transitional.dtd doctype, collecting a credit card number with the following HTML



        
18条回答
  •  佛祖请我去吃肉
    2020-11-22 06:35

    Using a random 'name' attribute works for me.

    I reset the name attribute when sending the form so you can still access it by name when the form is sent. (using the id attribute to store the name)

提交回复
热议问题