Samsung galaxy a51 – Mobilni uređaji – Mobiteli – Sarajevo – Centar

Uncategorized

‘).insertAfter(‘.quantity input’);
jQuery(‘.quantity’).each(function() {
var spinner = jQuery(this),
input = spinner.find(‘input[type=”number”]’),
btnUp = spinner.find(‘.quantity-up’),
btnDown = spinner.find(‘.quantity-down’),
min = input.attr(‘min’),
max = input.attr(‘max’);

btnUp.click(function() {
var oldValue = parseFloat(input.val());
if (oldValue >= max) {
var newVal = oldValue;
} else {
var newVal = oldValue + 1;
}
spinner.find(“input”).val(newVal);
spinner.find(“input”).trigger(“change”);
});

btnDown.click(function() {
var oldValue = parseFloat(input.val());
if (oldValue

Source

Sharing is caring!

Leave a Reply