How to Increment and Decrement Counter on Button Click in Javascript

preview_player
Показать описание
In this video tutorial, you will learn how to increment and decrement counter on button click in javascript. I hope you'll like the video and leave your feedback and suggestions for future video tutorials.

0:00 HTML
0:52 CSS
1:42 Javascript
2:42 Increment Counter on Button Click
3:08 Decrement Counter on Button Click
3:19 Final Output
Рекомендации по теме
Комментарии
Автор

Such a simple and yet useful video! Much appreciated!

ddpaw
Автор

i was searching for this but can't found anywhere finally i got this.Thanks for uploading this video

fahimalif
Автор

I was searching for this, finally got it
Btw how do I get the value?

adheeshburthia
Автор

Thank You for this very useful tutorial!

mandrasaptakmandal
Автор

how to do this and save the increments and decrements in php database for a specific user?

matthewmataruse
Автор

sir can it be done with basic getElementById and instead of <input> tag by using <p> tag????

souravchatterjee
Автор

How to use same buttons on different page

developerRahul
Автор

if i have to do it for not only one button but a lot (egual ad the first button) how i have to do?

lucabenetollo
Автор

what if i place <script> tag right after body tag, not in the bottom of the body tag ?

kbmcat
Автор

what if I want the buttons to be under the tag?

sydneysanders
Автор

thank you, can i ask, how to disable the minus button if the number is 0. ?

MFabioYusuf
Автор

Can you do the same for multiple input fields? But the same increment and decrement functions should be called for all the fields. Can you do that using javascript only??

pratitibera
Автор

how can you make the arrow sign after ('click, '() = ?

marcadrianc.benales
Автор

how can i do this for a multiple buttons please ?

imensoltani
Автор

i have copied your code but not working

syeduzaif