Hi, I have a field: deposit_total and I am using JavaScript to calculate the field. I don't want users to input in the field so I have to disable it so they can see the total.
When I do this it will not save to the Database. What is the best way to save this to the database?
My code:
When I do this it will not save to the Database. What is the best way to save this to the database?
My code:
$("#rent_advance,#room_bond,#dps_deposit").on("change", function(){
$("#deposit_total").val(parseInt($("#rent_advance").val()) + parseInt($("#room_bond").val()) + parseInt($("#dps_deposit").val()));
});