Advertisement
freddy0512

jquery

Mar 30th, 2015
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. function hitung2(el) {
  2. var row = $(el).closest("tr"),
  3. inputs = row.find("[type=text]")
  4. jumlah = inputs.eq(3).val(),
  5. harga = inputs.eq(4).val();
  6. inputs.eq(5).val(jumlah * harga)
  7.  
  8. //only get last row inserted, how to count all, should i make new function
  9. //$("#total").val(jumlah * harga);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement