Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <select onchange="updateNrOfProductsInCart(24, this.value);">
  2. <select onchange="updateNrOfProductsInCart(7, this.value);">
  3. <select onchange="updateNrOfProductsInCart(53, this.value);">
  4.  
  5. $('.quantity-verification').each(function() {
  6. // Variables and other code that helps below.
  7. // I removed this as it would bload the page.
  8.  
  9. // Adjusting select option to correct value
  10. $('.quantity-modifier-' + qvAlias + ' option').filter(function(){
  11. return this.text == qvQuantity;
  12. }).attr("selected", "selected").parent().trigger('change');
  13. // Updating the cart with the correct values.
  14.  
  15. console.log('qvTitle='+qvTitle + 'n' + 'qvQuantity'+qvQuantity + 'n' + 'qvAlias'+qvAlias );
  16. // everything outputs perfectly in console log.
  17. }); // end of each function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement