A calculation is based on user input, and criteria is to use keyup rather than change or blur.
keyup
change
blur
The problem is that the code fi
Use it like this:-
$('input').keyup(debounce(function(){ var $this=$(this); //alert( $this.val() ); var n1 = $this.val(); var n2 = $('#n2').val(); var n3 = $('#n3').val(); var calc = n1 * n2 * n3; alert(calc); },500));
Fiddle