Slider Revolution WP
09.27.2016
<div class="quantity"> <input class="input-text qty text" type="number" size="4" title="Qty" value="1" name="quantity" min="1" step="1"> </div>
.esg-content .quantity input { font-family: inherit; font-size: inherit; text-align: center; width: 50px; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
jQuery('.esg-grid .qty').change(function() { var addToCart = jQuery(this), itm = addToCart.closest('li').find('.add_to_cart_button'), href = itm.attr('href'); href = href.split('&quantity=')[0]; itm.attr('href', href + '&quantity=' + addToCart.val()); }); |