View Single Post
Old 10-23-2011, 10:53 AM   PM User | #3
hdewantara
Regular Coder

 
hdewantara's Avatar
 
Join Date: Aug 2009
Location: Jakarta, Indonesia.
Posts: 289
Thanks: 5
Thanked 40 Times in 40 Posts
hdewantara is an unknown quantity at this point
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
hdewantara is offline   Reply With Quote