Reputation: 1
function change(id) {
var i = findpos(id);
totalprice += (parseInt($('#' + id + '_cnt').val()) - purchased[i].cnt) * purchased[i].price;
purchased[i].cnt = parseInt($('#' + id + '_cnt').val());
update_total();
}
Upvotes: 0
Views: 42
Reputation:
I am afraid this function doesn't have any thing to do with a changing id. I suggest you take a closer look at the function calling this function or the HTML tags related to this function.
Upvotes: 1