Skip to content
Advertisement

How do I increase and decrease the addition in a span tag by click + and – buttons around input tag?

It’s worked without buttons.
But how to apply input addition with help of + and – buttons.
How can I solve this with javascript or jquery?

JavaScript
JavaScript
How to get an answer at runtime by clicking the buttons around them. I also have a separate code for the increase and decrease buttons.

Advertisement

Answer

This is what I actually want. The sum of three displayed in the tag.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement