Skip to content

Instantly share code, notes, and snippets.

@iande
Created March 10, 2012 23:42
Show Gist options
  • Save iande/2014025 to your computer and use it in GitHub Desktop.
Save iande/2014025 to your computer and use it in GitHub Desktop.
jcart modification
// Line 174 of jcart v1.3
// Add an item to the cart
$('.jcart').submit(function(e) {
add($(this));
e.preventDefault();
});
// Try replacing or adding:
$('#parentContainer').on('submit', '.jcart', function (e) {
add($(this));
e.preventDefault();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment