$('.spinner').on('click', '.btn:first-of-type', function() {
var $input = $(this).closest('.numeric-btn').find('.spinner input');
$input.val( parseInt($input.val(), 10) + 1).keyup();
});
When I replace div
where is .spinner
class with
$('.side-form > div.cart-form').replaceWith(cart_form);
Then click event does not work. What can be the problem ?