Advertisement
RiQ363

Ecwid payment details page empty address fields script

Oct 29th, 2014
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
  2. <script>if (typeof(Ecwid) == 'object') {
  3.   Ecwid.OnPageLoaded.add(function(page) {
  4.     if ('CHECKOUT_PAYMENT_DETAILS' == page.type) {
  5. $('input[type=checkbox]').prop('checked', false);
  6. $("input[type=text]").prop('disabled', false);
  7. $("input[type=tel]").prop('disabled', false);
  8. $("select[name='country-list']").prop("disabled", false);
  9. $("select[name='state-list']").prop("disabled", false);
  10. $("select[name='state-suggest']").prop("disabled", false);
  11. $('input[type=text]').val('');
  12. $('input[type=tel]').val('');
  13. $("select[name='country-list']").val('');
  14. $("select[name='state-list']").val('');
  15. $("select[name='state-suggest']").val('');
  16.         }
  17.   });
  18. }
  19. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement