¡@

Home 

2014/10/16 ¤W¤È 12:04:29

jquery Programming Glossary: issession

jquery - return value using ajax result on success

http://stackoverflow.com/questions/3302702/jquery-return-value-using-ajax-result-on-success

order_price_addon parseInt add removeSession name else if isSession name 0 var price parseInt order_price_addon parseInt add .. starts else statement. Else we want to check whether the isSession function with the name of our selector returns 0 or 1 if it.. by recreating it but the amount isn't added to it. Now isSession function looks like this function isSession selector .ajax type..

jquery - return value using ajax result on success

http://stackoverflow.com/questions/3302702/jquery-return-value-using-ajax-result-on-success

.attr 'name' var val this .val if val var price parseInt order_price_addon parseInt add removeSession name else if isSession name 0 var price parseInt order_price_addon parseInt add setSession name val .order_price_addon .html price setSession.. with the select's name. After this is where the problem starts else statement. Else we want to check whether the isSession function with the name of our selector returns 0 or 1 if it returns 0 then we add to the total the value stored in the label.. already exists then we only change the value of this session by recreating it but the amount isn't added to it. Now isSession function looks like this function isSession selector .ajax type POST url ' order.html' data issession 1 selector selector..