Does
div.bsubmitcart binding to click event have to be inside the
form.addtocart_form binding? Could it be moved out from red to blue, like below?
Code:
$('[data-role="page"]').bind('pageinit', function () {
$('.addtocart_form').bind('click', function (e) {
e.preventDefault();
//...
//$('.bsubmitcart').click(handleAddToCart);
});
$('.bsubmitcart').click(handleAddToCart);
//...
});
Hendra