Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(elem).click(function(){
- var url = $(this).attr("href")
- $.ajax({
- type: "GET",
- url: url,
- success: function(data) {
- window.location.href = "/cart"
- }
- })
- return false
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement