Jquery issue with on()

I have created a fiddle to add two values and output the value. Fiddle is here:


When I enter values for input box(G7), value adds to G8 and shows the output. But when I delete the value in the input box using backspace, the value in the G8 doesn't change to the default value(0). I have tried with .on() and .bind(). But no luck. Please help me to find out the issue.

I am using the following event:

 $("#g7").on("input keyup keydown keypress change blur", function() {});


Answers 1

Related Articles