Guest User

Untitled

a guest
Oct 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <div class="cart-img" id="cart"><img src="/images/cart_icon.png"/></div>
  2.  
  3. $.ajax({
  4. url: '/cart/add_cart',
  5. dataType : "json",
  6. type : 'post',
  7. data : {
  8. 'id':id,'quantity':quantity
  9. },
  10. success: function (data, textStatus) {
  11.  
  12. $('#cart img').addClass('animated zoomOut');
  13. $('#cart img').removeClass('animated zoomOut');
  14. $('#cart img').addClass('animated zoomIn');
  15. }
  16. });
Add Comment
Please, Sign In to add comment