Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script type="text/javascript" src="http://www.mirtechniki.net/js/jquery.maskedinput.min.js"></script> 

<form enctype="text/plain" id="checkout-form" method="POST" action="" class="methods-list" onsubmit="return shopCheckOut();">
  <input type="hidden" name="mode" value="change" id="checkout-form-mode">
  <input type="hidden" name="ssid" id="checkout-form-ssid" value="$SSID$">
  <input type="hidden" name="payment_id" value="2" id="payment_id">
  <input type="hidden" name="delivery_id" value="2" id="delivery_id">
  <div id="person-daten"> 
    <div class="adres-fehld">
      <div><input type="text" class="fw text" name="fld3" id="order-fld-3" value="" pattern="^[a-zA-Zа-яА-Я ]{1,30}$" placeholder="Имя, Фамилия*" required></div>
      <div><input type="text" class="fw text" name="fld2" id="order-fld-2" value="" pattern="^[a-zA-Zа-яА-ЯёЁ \-,.0-9]{1,40}$" placeholder="Адрес (ул, дом, кв.)*" required></div>
      <div><input type="text" class="fw text" name="fld5" id="order-fld-5" value="" pattern="^([0-9]{5,6})([ ,])([a-zA-Zа-яА-ЯёЁ \-,.]{2,30})$" placeholder="Индекс, Город*" required></div>
      <div>
        <select name="fld7" id="order-fld-7">
					<option value="Россия" selected="">Россия</option>
					<option value="Беларусь">Беларусь</option>
					<option value="Украина">Украина</option>
					<option value="Казахстан">Казахстан</option>
					<option value="Кыргызстан">Кыргызстан</option>
        </select>
      </div>
    </div>
    <div class="kontakt-fehld">
      <div><input type="email" class="fw text" name="fld8" id="order-fld-8" value="" placeholder="E-mail*" required></div>
      <div><input type="text" class="fw text" name="fld1" id="order-fld-1" value="" placeholder="Телефон*" required></div>
      <div>
        <input type="text" class="text promo" value="" name="fld12" id="order-fld-12" placeholder="Код скидки/купона/акции">
        <input type="button" value="Проверить код" onclick="checkPromo('12')">
        <div id="res12" style="display:none;"><img src="/.s/img/icon/ajsml.gif"></div>
      </div>
    </div>
  </div>
  <div id="add-goods">
    <h2>Добавить товары</h2>
    <div class="goods-1 fixbox">
      <div class="goods_title fixbox">
        <h3>Товар №1</h3></div>
      <input type="text" class="fw text" name="fld13" id="order-fld-13" value="" placeholder="Название товара">
      <input type="url" class="fw text" name="fld14" id="order-fld-14" value="" placeholder="Ссылка на товар http://" required>
      <input type="text" class="fw text" name="fld15" id="order-fld-15" value="" pattern="^\d+\.?(\d{1,2})?$" placeholder="Цена: 0.00 €" size="8"><span> €</span>
      <input type="text" class="fw text" name="fld16" id="order-fld-16" value="" pattern="^\d{1,2}\.?(\d{1,2})?$" placeholder="Доставка: 0.00 €" size="11"><span> € </span>
      <input type="text" class="fw text" name="fld33" id="order-fld-33" value="1" pattern="^\d{1,2}$" placeholder="Кол-во: 1 шт." size="2"><span> шт.</span>
      <input type="hidden" name="sum1" id="sum1" class="total_sum" readonly />
      <div id="goods-sum"><span>Сумма: </span><span id="result">0</span><span> €</span></div> 
    </div>
    <div class="goods-2 fixbox">
      <div class="goods_title fixbox">
        <h3>Товар №2</h3>
        <div class="del-goods-2">X</div>
      </div>
      <input type="text" class="fw text" name="fld17" id="order-fld-17" value="" placeholder="Название товара">
      <input type="url" class="fw text" name="fld18" id="order-fld-18" value="" placeholder="Ссылка на товар http://">
      <input type="text" class="fw text" name="fld19" id="order-fld-19" value="" pattern="^\d+\.?(\d{1,2})?$" placeholder="Цена: 0.00 €" size="8"><span> € </span>
      <input type="text" class="fw text" name="fld20" id="order-fld-20" value="" pattern="^\d{1,2}\.?(\d{1,2})?$" placeholder="Доставка: 0.00 €" size="11"><span> € </span>
      <input type="text" class="fw text" name="fld34" id="order-fld-34" value="" pattern="^\d{1,2}$" placeholder="Кол-во: 1 шт." size="2"><span> шт.</span>
      <input type="hidden" name="sum2" id="sum2" class="total_sum" readonly />
      <div id="goods-sum"><span>Сумма: </span><span id="result2">0</span><span> €</span></div>
    </div>
    <div class="goods-3 fixbox">
      <div class="goods_title fixbox">
        <h3>Товар №3</h3>
        <div class="del-goods-3">X</div>
      </div>
      <input type="text" class="fw text" name="fld21" id="order-fld-21" value="" placeholder="Название товара">
      <input type="text" class="fw text" name="fld22" id="order-fld-22" value="" placeholder="Ссылка на товар http://">
      <input type="text" class="fw text" name="fld23" id="order-fld-23" value="" pattern="^\d+\.?(\d{1,2})?$" placeholder="Цена: 0.00 €" size="8"><span> €</span>
      <input type="text" class="fw text" name="fld24" id="order-fld-24" value="" pattern="^\d{1,2}\.?(\d{1,2})?$" placeholder="Доставка: 0.00 €" size="11"><span> €</span>
      <input type="text" class="fw text" name="fld35" id="order-fld-35" value="" pattern="^\d{1,2}$" placeholder="Кол-во: 1 шт." size="2"><span> шт.</span>
      <input type="hidden" name="sum3" id="sum3" class="total_sum" readonly />
      <div id="goods-sum"><span>Сумма: </span><span id="result3">0</span><span> €</span></div>
    </div>
    <div class="goods-4 fixbox">
      <div class="goods_title fixbox">
        <h3>Товар №4</h3>
        <div class="del-goods-4">X</div>
      </div>
      <input type="text" class="fw text" name="fld25" id="order-fld-25" value="" placeholder="Название товара">
      <input type="text" class="fw text" name="fld26" id="order-fld-26" value="" placeholder="Ссылка на товар http://">
      <input type="text" class="fw text" name="fld27" id="order-fld-27" value="" pattern="^\d+\.?(\d{1,2})?$" placeholder="Цена: 0.00 €" size="8"><span> €</span>
      <input type="text" class="fw text" name="fld28" id="order-fld-28" value="" pattern="^\d{1,2}\.?(\d{1,2})?$" placeholder="Доставка: 0.00 €" size="11"><span> €</span>
      <input type="text" class="fw text" name="fld36" id="order-fld-36" value="" pattern="^\d{1,2}$" placeholder="Кол-во: 1 шт." size="2"><span> шт.</span>
      <input type="hidden" name="sum4" id="sum4" class="total_sum" readonly />
      <div id="goods-sum"><span>Сумма: </span><span id="result4">0</span><span> €</span></div>
    </div>
    <div class="goods-5 fixbox">
      <div class="goods_title fixbox">
        <h3>Товар №5</h3>
        <div class="del-goods-5">X</div>
      </div> 
      <input type="text" class="fw text" name="fld29" id="order-fld-29" value="" placeholder="Название товара">
      <input type="text" class="fw text" name="fld30" id="order-fld-30" value="" placeholder="Ссылка на товар http://">
      <input type="text" class="fw text" name="fld31" id="order-fld-31" value="" pattern="^\d+\.?(\d{1,2})?$" placeholder="Цена: 0.00 €" size="8"><span> €</span>
      <input type="text" class="fw text" name="fld32" id="order-fld-32" value="" pattern="^\d{1,2}\.?(\d{1,2})?$" placeholder="Доставка: 0.00 €" size="11"><span> €</span>
      <input type="text" class="fw text" name="fld37" id="order-fld-37" value="" pattern="^\d{1,2}$" placeholder="Кол-во: 1 шт." size="2"><span> шт.</span>
      <input type="hidden" name="sum5" id="sum5" class="total_sum" readonly /> 
      <div id="goods-sum"><span>Сумма: </span><span id="result5">0</span><span> €</span></div> 
    </div> 
    <div class="add-buttons">
      <div class="add-goods-2">Добавить товар</div>
      <div class="add-goods-3">Добавить товар</div>
      <div class="add-goods-4">Добавить товар</div>
      <div class="add-goods-5">Добавить товар</div> 
    </div>
  </div>
  <div class="technikal-opiration">
  <label for="global-sum">Общая стоимость товаров:</label><input type="text" id="global-sum" value="0" readonly/><br />
  <!--label for="pyment-sum">Стоимость с комиссией:</label><input type="text" id="pyment-sum" value="0" readonly/><br /-->   
  <label for="item-sum">Стоимость посылки:</label><input type="text" id="item-sum" value="50" readonly/><br />
    </div>
</form>  
 
<table width="100%" border="0" celspacing="0" celpadding="2" id="payments-list" class="methods-list">
  <tbody>
    <tr valign="top" id="payment-block-2">
      <th><input type="radio" name="payment" value="2" class="payment-item" id="pay-type-2" onclick="shEvOrd('payment',this)" checked=""></th>
      <td><label class="label" for="pay-type-2">Банковский перевод (2-5 дней)</label></td>
    </tr>
    <tr valign="top" id="payment-block-3">
      <th><input type="radio" name="payment" value="3" class="payment-item" id="pay-type-3" onclick="shEvOrd('payment',this)"></th>
      <td><label class="label" for="pay-type-3">PayPal</label></td>
    </tr>
    <tr valign="top" id="payment-block-5">
      <th><input type="radio" name="payment" value="5" class="payment-item" id="pay-type-5" onclick="shEvOrd('payment',this)"></th>
      <td><label class="label" for="pay-type-5">Western Union</label></td>
    </tr>
    <tr valign="top" id="payment-block-4">
      <th><input type="radio" name="payment" value="4" class="payment-item" id="pay-type-4" onclick="shEvOrd('payment',this)"></th>
      <td><label class="label" for="pay-type-4">Skrill</label></td>
    </tr>
    <tr valign="top" id="payment-block-6">
      <th><input type="radio" name="payment" value="6" class="payment-item" id="pay-type-6" onclick="shEvOrd('payment',this)"></th>
      <td><label class="label" for="pay-type-6">WebMoney WME</label></td>
    </tr>
    <tr valign="top" id="payment-block-7">
      <th><input type="radio" name="payment" value="7" class="payment-item" id="pay-type-7" onclick="shEvOrd('payment',this)"></th>
      <td><label class="label" for="pay-type-7">CONTACT-СЧЁТ</label></td>
    </tr>
  </tbody>
</table>
              
            
!

CSS

              
                select, input {
    color: #5E6D81;
    background: #fff;
    padding: 7px 5px;
    margin: 0 0 5px 2px;
    border: 1px solid #dbe1e8;
    font: normal normal normal normal 13px/normal Arial;
}
input:invalid {
    border: 1px solid red;
  outline: none;
}

.fixbox::after {
  content: ' ';
  display: table;
  clear: both;
}
.adres-fehld {
    display: inline-block;
}

.kontakt-fehld {
    display: inline-block;
}
#person-daten {
    display: flex;
    justify-content: space-around;
}
#add-goods [class^="goods-"] {
  background: #f5f5f5;
  padding: 0 0 20px 20px;
  margin: 10px 0;
  position: relative;
}
#add-goods [class^="goods-"] input:nth-of-type(1) {
  width: 30%;
}
#add-goods [class^="goods-"] input:nth-of-type(2) {
  width: 60%;
}

#add-goods [class^="goods-"] input{
  margin: 5px 0;
  width: auto;
}
.goods-2,
.goods-3,
.goods-4,
.goods-5 {
  display: none;
}

#add-goods [class^="del-goods-"],
#add-goods [class^="add-goods-"] {
  display: block;
  cursor: pointer;
  margin: 5px;
  color: #fff;
  text-align: center;
}

#add-goods [class^="add-goods-"] {
  float: left;
  position: absolute;
  background: #228B22;
  padding: 5px 10px;
}

#add-goods [class^="del-goods-"] {
  display: none;
  float: right;
  padding: 0 5px;
  background: #f1a99a;
  position: relative;
  margin: 0;
  top: 5px;
  right: 5px;
}
#add-goods [class^="del-goods-"]:hover {
      background: #ea4827;
}

.add-goods-2 {
  z-index: 5;
}

.add-goods-3 {
  z-index: 4;
}

.add-goods-4 {
  z-index: 3;
}

.add-goods-5 {
  z-index: 2;
}
.add-buttons {
    width: 100%;
    height: 50px;
}
#add-goods h3 {
    width: 100px;
    float: left;
}

#goods-sum {
    display: block;
    background: #d4d9db;
    position: absolute;
    float: right;
    right: 10px;
    bottom: 10px;
    padding: 10px;
    width: auto;
    color: #37475a;
}
              
            
!

JS

              
                /*Добавить товар №2*/
$(document).ready(function() {
  $('.add-goods-2').click(function() {
    $(".goods-2").css("display", "block");
    $(".add-goods-2").css("display", "none");
    $(".del-goods-2").css("display", "block");
    $("#order-fld-18").attr("required", "true");
    $("#order-fld-34").val('1');
  });
});
/*Удалить товар №2*/
$(document).ready(function() {
  $('.del-goods-2').click(function() {
    $('.goods-2 input').val('');
    $('#order-fld-18').removeAttr('required');
    $(".goods-2").css("display", "none");
    $(".add-goods-2").css("display", "block");
    $("#result2").html("0");
    $(document).ready(function() {$(".payment-item:radio:checked").click();});
  });
});
/*Добавить товар №3*/
$(document).ready(function() {
  $('.add-goods-3').click(function() {
    $(".goods-3").css("display", "block");
    $(".add-goods-3").css("display", "none");
    $(".del-goods-3").css("display", "block");
    $("#order-fld-22").attr("required", "true");
    $("#order-fld-35").val('1');
  });
});
/*Удалить товар №3*/
$(document).ready(function() {
  $('.del-goods-3').click(function() {
    $('.goods-3 input').val('');
    $('#order-fld-22').removeAttr('required');
    $(".goods-3").css("display", "none");
    $(".add-goods-3").css("display", "block");
    $("#result3").html("0");
    $(document).ready(function() {$(".payment-item:radio:checked").click();});
  });
});
/*Добавить товар №4*/
$(document).ready(function() {
  $('.add-goods-4').click(function() {
    $(".goods-4").css("display", "block");
    $(".add-goods-4").css("display", "none");
    $(".del-goods-4").css("display", "block");
    $("#order-fld-26").attr("required", "true");
    $("#order-fld-36").val('1');
  });
});
/*Удалить товар №4*/
$(document).ready(function() {
  $('.del-goods-4').click(function() {
    $('.goods-4 input').val('');
    $('#order-fld-26').removeAttr('required');
    $(".goods-4").css("display", "none");
    $(".add-goods-4").css("display", "block");
    $("#result4").html("0");
    $(document).ready(function() {$(".payment-item:radio:checked").click();});
  });
});
/*Добавить товар №5*/
$(document).ready(function() {
  $('.add-goods-5').click(function() {
    $(".goods-5").css("display", "block");
    $(".add-goods-5").css("display", "none");
    $(".del-goods-5").css("display", "block");
    $("#order-fld-30").attr("required", "true");
    $("#order-fld-37").val('1');
  });
});
/*Удалить товар №5*/
$(document).ready(function() {
  $('.del-goods-5').click(function() {
    $('.goods-5 input').val('');
    $('#order-fld-30').removeAttr('required');
    $(".goods-5").css("display", "none");
    $(".add-goods-5").css("display", "block");
    $("#result5").html("0");
    $(document).ready(function() {$(".payment-item:radio:checked").click();});
  });
});

/*Маска для телефона*/

jQuery(function($) {
  $.mask.definitions['9'] = '';
  $.mask.definitions['n'] = '[0-9]';
  $(function() {
    function maskPhone() {
      var country = $('#order-fld-7 option:selected').val();
      switch (country) {
        case "Россия":
          $("#order-fld-1").mask("+7(nnn) nnn-nn-nn");
          break;
        case "Украина":
          $("#order-fld-1").mask("+380(nnn) nn-nn-nn");
          break;
        case "Беларусь":
          $("#order-fld-1").mask("+375(nnn) nnn-nn-nn");
          break;
        case "Казахстан":
          $("#order-fld-1").mask("+7(nnn) nnn-nn-nn");
          break;
        case "Кыргызстан":
          $("#order-fld-1").mask("+996(nnn) nn-nn-nn");
          break;
      }
    }
    maskPhone();
    $('#order-fld-7').change(function() {
      maskPhone();
    });
  });
});
/*Конец - Маска для телефона*/

/*Сумма товар №1*/
$(document).ready(function() {
  $("#order-fld-15, #order-fld-16, #order-fld-33").on("input", function sum() {
    var n1 = document.getElementById('order-fld-15').value;
    var n2 = document.getElementById('order-fld-16').value;
    var n3 = document.getElementById('order-fld-33').value;
    var result = (Math.ceil(n1) + Math.ceil(n2)) * (n3);
    if (!isNaN(result)) {
      document.getElementById('sum1').value = result;
      document.getElementById('result').innerHTML = result;
    }
    $(document).ready(function() {
    $("#order-fld-15, #order-fld-16, #order-fld-33").on("input")
     document.querySelector('input[name="payment"]:checked').click();
});
});
});

/*Сумма товар №2*/
$(document).ready(function() {
  $("#order-fld-19, #order-fld-20, #order-fld-34").on("input", function sum() {
    var n1 = document.getElementById('order-fld-19').value;
    var n2 = document.getElementById('order-fld-20').value;
    var n3 = document.getElementById('order-fld-34').value;
    var result = (Math.ceil(n1) + Math.ceil(n2)) * (n3);
    if (!isNaN(result)) {
      document.getElementById('sum2').value = result;
      document.getElementById('result2').innerHTML = result;
    }
    $(document).ready(function() {
    $("#order-fld-19, #order-fld-20, #order-fld-34").on("input");
    document.querySelector('input[name="payment"]:checked').click('checked', true);
});
  });
});

/*Сумма товар №3*/
$(document).ready(function() {
  $("#order-fld-23, #order-fld-24, #order-fld-35").on("input", function sum() {
    var n1 = document.getElementById('order-fld-23').value;
    var n2 = document.getElementById('order-fld-24').value;
    var n3 = document.getElementById('order-fld-35').value;
    var result = (Math.ceil(n1) + Math.ceil(n2)) * (n3);
    if (!isNaN(result)) {
      document.getElementById('sum3').value = result;
      document.getElementById('result3').innerHTML = result;
    }
    $(document).ready(function() {
    $("#order-fld-23, #order-fld-24, #order-fld-35").on("input");
    document.querySelector('input[name="payment"]:checked').click('checked', true);
});
  });
});

/*Сумма товар №4*/
$(document).ready(function() {
  $("#order-fld-27, #order-fld-28, #order-fld-36").on("input", function sum() {
    var n1 = document.getElementById('order-fld-27').value;
    var n2 = document.getElementById('order-fld-28').value;
    var n3 = document.getElementById('order-fld-36').value;
    var result = (Math.ceil(n1) + Math.ceil(n2)) * (n3);
    if (!isNaN(result)) {
      document.getElementById('sum4').value = result;
      document.getElementById('result4').innerHTML = result;
    }
    $(document).ready(function() {
    $("#order-fld-27, #order-fld-28, #order-fld-36").on("input");
    document.querySelector('input[name="payment"]:checked').click('checked', true);
});
  });
});

/*Сумма товар №5*/
$(document).ready(function() {
  $("#order-fld-31, #order-fld-32, #order-fld-37").on("input", function sum() {
    var n1 = document.getElementById('order-fld-31').value;
    var n2 = document.getElementById('order-fld-32').value;
    var n3 = document.getElementById('order-fld-37').value;
    var result = (Math.ceil(n1) + Math.ceil(n2)) * (n3);
    if (!isNaN(result)) {
      document.getElementById('sum5').value = result;
      document.getElementById('result5').innerHTML = result;
    }
    $(document).ready(function() {
    $("#order-fld-31, #order-fld-32, #order-fld-37").on("input");
    document.querySelector('input[name="payment"]:checked').click('checked', true);
});
  });
});


$(document).ready(function() {
// если поле custom_delivery_tax не существует
if ($('input[name="custom_delivery_tax"]').length == 0) {
  // добавить его
  $('.technikal-opiration').append('<label for="custom_delivery_tax">Стоимость с комиссией:</label><input type="text" name="custom_delivery_tax" id="custom_delivery_tax" value="0" readonly>');
} else {
  $('input[name="custom_delivery_tax"]').attr('id', 'custom_delivery_tax').attr('readonly', 'true');
};
});

/*Сумма всех товаров №1-№5*/
$(document).ready(function() {
  $("#add-goods").on("input", function sum() {
    var n1 = document.getElementById('sum1').value;
    var n2 = document.getElementById('sum2').value;
    var n3 = document.getElementById('sum3').value;
    var n4 = document.getElementById('sum4').value;
    var n5 = document.getElementById('sum5').value;
    var result = Math.ceil(n1) + Math.ceil(n2) + Math.ceil(n3) + Math.ceil(n4) + Math.ceil(n5);
    if (!isNaN(result)) {
      document.getElementById('global-sum').value = result;
    }
    shEvOrd('delivery', document.getElementById('del-type-10'));
  });
});
/*Сумма всех товаров №1-№5 с учетом удаленных*/
$(document).ready(function() {
  $(".del-goods-2, .del-goods-3, .del-goods-4, .del-goods-5").on("click", function sum() {
    var n1 = document.getElementById('sum1').value;
    var n2 = document.getElementById('sum2').value;
    var n3 = document.getElementById('sum3').value;
    var n4 = document.getElementById('sum4').value;
    var n5 = document.getElementById('sum5').value;
    var result = Math.ceil(n1) + Math.ceil(n2) + Math.ceil(n3) + Math.ceil(n4) + Math.ceil(n5);
    if (!isNaN(result)) {
      document.getElementById('global-sum').value = result;
    }
      shEvOrd('delivery', document.getElementById('del-type-10'));
  });
});

    //  shEvOrd('delivery', document.getElementById('del-type-10'));

// Расчет стоимости с учетом доставки и комиссией 5%
var paypal = $(document).ready(function () {
  $("#pay-type-3").on( "click", function sum() {
    var n1 = document.getElementById('global-sum').value;
    var n2 = "0.05";
    var n3 = document.getElementById('item-sum').value;
    var s1 = Math.ceil(n1)+Math.ceil(n3)*(n2);
    var result = s1 + (s1 * n2);
    if (!isNaN(result)) {
      document.getElementById('custom_delivery_tax').value = Math.ceil(result);
    }
    shEvOrd('delivery', document.getElementById('del-type-10'));
  });
});


// Расчет стоимости с учетом доставки и комиссией 2%
$(document).ready(function() {
  $("#pay-type-6").on("click", function sum() {
    var n1 = document.getElementById('global-sum').value;
    var n2 = "0.02";
    var n3 = document.getElementById('item-sum').value;
    var s1 = Math.ceil(n1)+Math.ceil(n3)*(n2);
    var result = s1 + (s1 * n2);
    if (!isNaN(result)) {
      document.getElementById('custom_delivery_tax').value = Math.ceil(result);
    }
    shEvOrd('delivery', document.getElementById('del-type-10'));
  });
});
// Расчет стоимости с учетом доставки и комиссией 0%
$(document).ready(function() {
  $("#pay-type-2, #pay-type-4, #pay-type-5, #pay-type-7").on("click", function sum() {
    var n1 = document.getElementById('global-sum').value;
    if (!isNaN(n1)) {
      document.getElementById('custom_delivery_tax').value = (n1);
    }
    shEvOrd('delivery', document.getElementById('del-type-10'));
  });
});



//$("#order-fld-15, #order-fld-16, #order-fld-33").focus();
 //  $("#pay-type-2").attr("checked", true);
//document.getElementById('pay-type-2').prop('checked', true);
//$("#pay-type-2").prop("checked", true);
 
              
            
!
999px

Console