Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fix-plus-minus-buttons for the theme Stoni
jQuery('body').on('click', '.quantity.number-input span.plus, .quantity.number-input span.minus', function(e){
setTimeout( function() {
jQuery( this.parentNode ).find( 'input[type=number]' ).trigger( 'change' );
}.bind( this ), 20 )
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment