Created
March 4, 2020 14:36
-
-
Save aatronco/7d472666ade2386a7fd35675d579fb66 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<div id="alerta" class="alert alert-info" role="alert"> | |
<strong>Heads up!</strong> This alert needs your attention, but it's not super important. | |
</div> | |
<script> | |
var alert_checkout = function(){ | |
if($("#order_shipping_address_region").val() == "01"){ | |
$("#alerta").show() | |
}else{ | |
$("#alerta").hide() | |
}} | |
$("#order_shipping_address_region").change(alert_checkout) | |
$(document).ready(function(){ | |
Jumpseller.regionListener("#order_shipping_address_region", { | |
callback: alert_checkout | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment