Skip to content

Instantly share code, notes, and snippets.

@sahanh
Created October 13, 2017 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sahanh/d5b609ae925bb529c84ce261f4864bc8 to your computer and use it in GitHub Desktop.
Save sahanh/d5b609ae925bb529c84ce261f4864bc8 to your computer and use it in GitHub Desktop.
<script>
jQuery(document).ready(function(n){var c=[{s:"input[name=name]",ac:"name"},{s:"input[name=email]",ac:"email"},{s:"input[name=phone]",ac:"tel"},{s:"input[name=address]",ac:"shipping street-address"},{s:"input[name=city]",ac:"shipping locality"},{s:"input[name=state]",ac:"shipping region"},{s:"input[name=zip]",ac:"shipping postal-code"},{s:"input[name=country]",ac:"shipping country"},{s:".cc-number",ac:"cc-number"},{s:".cc-cvc",ac:"cc-csc"},{s:".cc-expirey-month",ac:"cc-exp-month"},{s:".cc-expirey-year",ac:"cc-exp-year"}];n(".containerInner").replaceWith(function(){return n("<form />",{"class":"containerInner"}).append(n(this).contents())}),n.each(c,function(c,e){n(e.s).attr("autocomplete",e.ac)})});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment