class click counter save number

by Vivek   Last Updated June 12, 2019 06:08 AM - source

When the user clicks class count the counter should work:

<div class="pop-btn" class="counter"><a href="https://www.example.com">Know More</a></div>
<div class="count"></div>

The problem is that I want the number to be saved, so for example:

user #1 clicks on the div with class "counter" 10 times

user #2 opens the site and the count is at 10, he clicks and now the counter starts 11 and so on with new users.

I'm trying to do this to keep track of how many times a file has been downloaded.

Any idea how can I do that?



Related Questions