Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

115
Views
How can we count each user click button after login or register

In my code whenever we click this button counting apply on all user but I want each user to see their own button clicked count.

Is this possible in local storage or I have to use php ?
function refreshDiv() {
  if (localStorage.clickcount) {
    localStorage.clickcount = Number(localStorage.clickcount) + 1;
  } else {
    localStorage.clickcount = 1;
  }
  document.getElementById("count").innerHTML = localStorage.clickcount;
}
<button id="txt-btn" class="dropdown-item" onclick="refreshDiv();">Save</button>
<table class="w3-table-all w3-card-4">
  <tr>
    <th>count</th>
  </tr>
  <tr>
    <td id="count"></td>
  </tr>
</table>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!