Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hitung2(el) {
- var row = $(el).closest("tr"),
- inputs = row.find("[type=text]")
- jumlah = inputs.eq(3).val(),
- harga = inputs.eq(4).val();
- inputs.eq(5).val(jumlah * harga)
- //only get last row inserted, how to count all, should i make new function
- //$("#total").val(jumlah * harga);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement