How to change the number press using jquery?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
9 views
There are a number that h1, for example 3, it is necessary that when you click on the picture displayed, the number increased/decreased, how to implement it?
by | 9 views

1 Answer

0 like 0 dislike
You will need:
0. After clicking on the image:
1. Take the value of h1.text();
2. Convert it to a number explicitly or not, as you wish. ("operation-" perfectly translates the string to a number, if possible ;-) )
3. To make him anything and write back to h1.
Go for it.
The finished code will not give you anything.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked May 3, 2019 by tokmaganbet1
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
110,608 questions
257,187 answers
0 comments
40,796 users