Check my fiddle here JSFiddle. I have different id and class and i want to add the dynamically values.while key up I wanna add values dynamically in the total field
I have 3 inputs with ids InvQty1, InvQty2 and InvQty3 and an input with id Total
$(document).ready(function(){
$('.InvQty').keyup(function(){
var val2 = parseInt($('#InvQty1').val())+parseInt($('#InvQty2').val());
$('#Total').val(val2);
});
});
Any help really appreciated !