Advertisement
iGorNoiZe

Untitled

Apr 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <input type="number" class="count-item" min="1" name="comment" max="20" value="1">
  2. //<input name="order_custom" class="qnt-item" type="hidden" value="" />
  3. //<input name="order_custom1" class="price-item" type="hidden" value="2850"/>
  4.  
  5.  
  6. var qntgoods = $(".count-item").attr("value");
  7. $('.qnt-item').attr('value' , qntgoods);
  8. var pricegoods = $('.price-item').attr("value");
  9. var resultsend = pricegoods * qntgoods;
  10. $('.price-item').attr("value", resultsend);
  11. console.log(resultsend);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement