PastulÆ
PastulÆ

Reputation: 1

ID is not changing, how can I fix it?

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

Answers (1)

user5284713
user5284713

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

Related Questions