Substraction two textbox values with jquery [duplicate]

$("#result").val(parseInt($("#amount").val(), 10) - parseInt($("#discount").val(), 10));

That should do it. jsFiddle here.

Browse More Popular Posts

Leave a Comment