Instead of an html, I used an input field to display the result of my basic math problem. It is displaying the value of the total on the input field but when I tried to submit the button, it is not recording it.
This is the code:
var amountInput = $('#'+amountInputId).val(); var quantityAmount = $('#'+quantityAmountId).val(); var total = amountInput * quantityAmount; $("#input_field_id").val(total);
How to store the data from that computation?