Safari autofill Credit Card

前端 未结 5 478
心在旅途
心在旅途 2021-02-05 23:24

I am trying to use the code below to use \"Safari\'s AutoFill\" of the credit card. But it did not work


&l         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 00:17

    To make it work you need to:

    • Use any of this names: addCreditCardNumber, cardNumber, cardnumber -or- any of this ids: cardNumber, creditCardNumber, creditCardMonth, creditCardYear (there may be more ids or names that works)
    • Use an input with text type (not number type)
    • And most importantly it will only work over https

    Hope this helps!

提交回复
热议问题