Question: how to calculate percentage in jquery?
Answer: $(document). ready(function(){ var currentValue = 0; $(".account-form .price input[type='text']"). keyup(function(){ currentValue = $(this). val(); $(this). val(parseInt(currentValue) + (currentValue * 20)/100);