On Click on the plus icon it will increase the quantity of the corresponding Item and updates that to the MyOrders tab div .
Now on clcik of the Myorders tab div , how can i extract the lastItm_Wrap div whose quantity is greater than 1 ?? so that i can add them to the finalorders
http://jsfiddle.net/673h38g9/4/
my sample code
$(document).on('click', '.icon-plus', function (e) {
var value = parseInt($(this).closest('div').find('.QtyInput').val());
$(this).closest('div').find('.QtyInput').val(value+1);
var currentsellprice = parseFloat($(this).parent().prev().data('sellprice'));
// get the data "price" of item
var currentquantity =parseInt($(this).closest('div').find('.QtyInput').val());
$(this).closest('.lastItm_Wrap').find('.Itm_right_aside .sellprice')
.text(currentsellprice*currentquantity);
if (currentquantity>=1) {
addquantitytoMyordersfooter();
var subtotalvalue = parseInt($(".myOrderPanel_footer .subtotal")
.data('subtotal'));
subtotalvalue = subtotalvalue + currentsellprice ;
$(".myOrderPanel_footer .subtotal").data('subtotal',subtotalvalue);
$(".myOrderPanel_footer .subtotal").text(subtotalvalue)
}
displaylogicforfooter();
});