Displaying how many times a button/div is clicked
I have an idea for a script that I was hoping someone at the js forum could help me start or write a basic version of because i have no clue where to start it.
So what I am trying to accomplish is counting how many times a div (if necessary it can be a <button> or <input />) has been clicked and then displaying it. The counting meaning numbers of times clicked so that would have to be stored in a variable and then if the user clicks that number or variable is incremented by one.
Is this possible to do in js and if so can someone please help me start writing this ?
I would really appreciate any and all help with this :)
Thanks in Advance & Best Regards,