autocomplete - Textbox does not show the normal Google Chrome credit card detection -
when using google chrome, credit card textbox on checkout page not show normal ability select existing credit card. did set "auto complete type" google recommends.
is due long "asp.net" style id field?
<input name="ctl00$conmain$checkoutcontrol1$txtcreditcardnumber" type="text" id="ctl00_conmain_checkoutcontrol1_txtcreditcardnumber" title="credit card number " x-autocompletetype="cc-number">
it works fine, need name on creditcard first input field, chrome uses autocomplete rest. use autocomplete
besides x-autocompletetype
support other versions of chrome.
<input name="ccname" id="frmnamecc" required placeholder="full name" autocomplete="cc-name"> <input name="ctl00$conmain$checkoutcontrol1$txtcreditcardnumber" type="text" id="ctl00_conmain_checkoutcontrol1_txtcreditcardnumber" title="credit card number " x-autocompletetype="cc-number" autocomplete="cc-number">
see jsfiddle: https://jsfiddle.net/c3ck1uxc/1/
Comments
Post a Comment