Created
January 27, 2015 16:22
-
-
Save riq363/8a6c9a6734ffc7e8cf0d to your computer and use it in GitHub Desktop.
Clear address fields on Shipping address step Ecwid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script> | |
if (typeof(Ecwid) == 'object') { | |
Ecwid.OnPageLoaded.add(function(page) { | |
if ('CHECKOUT_SHIPPING_ADDRESS' == page.type) { | |
$('input[type=text]').val(''); | |
$('input[type=tel]').val(''); | |
$("select[name='country-list']").val(''); | |
$("select[name='state-list']").val(''); | |
$("select[name='state-suggest']").val(''); | |
} | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment