NewBie Question, jQuery: How can we implement if...else logic and call function
- by Rachel
I am new to jQuery and so don't mind this question if it sounds stupid but here is something that I am trying to do :
I have 3 functions like:
AddToCart Function which adds item to the shopping cart:
//offer_id is the offer which we are trying to add to cart.
addToCart: function(offer_id)
{
this.submit({action: 'add', 'offer_id':…