Skip to content

Instantly share code, notes, and snippets.

@timbroder
Created October 6, 2011 20:15
Show Gist options
  • Save timbroder/1268527 to your computer and use it in GitHub Desktop.
Save timbroder/1268527 to your computer and use it in GitHub Desktop.
wtf7
$j.each(item.parent().parent().parent().next().children('.inner').children().children('.row').children('.details'),function(){
var qty = $j(this).children().children('.kit_qty').html();
$j(this).children().children('.kit_qty').html(json.itemsQty);
var price = $j(this).children().children('.total').children().children('.price').html();
totalSave = totalSave+((price.substr(1,price.length)/qty)*json.itemsQty);
$j(this).children().children('.total').children().children('.price').html("$"+(price.substr(1,price.length)/qty)*json.itemsQty);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment