I wanted to autgenerate the percentage based on entere amount.
If the user entered amount 1150, Percentage should be 100% and total will become 0.
i have used the following javascript but its not working
$(function () {
$(document).on('change', '#txtfamtt', function () { // input on change
var result = Math.round(parseFloat(parseInt($("#txtfamtt").val(), 10) * 100) / parseInt($("#txtTotal").val(), 10));
$('#txtper').val(result + '%'); //shows value in "#rate"
})
});