Results 1 to 7 of 7
Feb 10, 2012, 16:18 #1
- Join Date
- May 2010
- Okemos, Michigan, USA
- 1 Post(s)
- 0 Thread(s)
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,