Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function(e) {
- $("body").on("click", ".delivery-radio", function(e) {
- let currentIndex = $(this).index(".delivery-radio");
- if (currentIndex === 0) {
- $("#billing_address_1").val("");
- }
- });
- $("body").on("click", ".delivery-radio", function(e) {
- let currentIndex = $(this).index(".delivery-radio");
- if (currentIndex === 1) {
- $("#billing_address_1").val("Самовывоз");
- }
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement