Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="cart-img" id="cart"><img src="/images/cart_icon.png"/></div>
- $.ajax({
- url: '/cart/add_cart',
- dataType : "json",
- type : 'post',
- data : {
- 'id':id,'quantity':quantity
- },
- success: function (data, textStatus) {
- $('#cart img').addClass('animated zoomOut');
- $('#cart img').removeClass('animated zoomOut');
- $('#cart img').addClass('animated zoomIn');
- }
- });
Add Comment
Please, Sign In to add comment