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

241
Views
How to show timer in html button (Jquery mobile)?

I just wanna make add skip button. So I want to show timer in HTML button. I am trying with document.getElementbyId but its not working. HTML:

 <body>
    <div data-role="page" data-fullscreen="true" id="page0" class="mySplash">

        <div data-role="main" class="ui-content">

            <button id="skipButton" data-role="button" data-inline="true"></button>

        </div>

    </div>
    <div data-role="page" id="page1">
        <div data-role="main" class="ui-content"></div>

    </div>

JavaScript:

var myCounter = 5;

function mySplashPageCountDown() {
  console.log(myCounter);

  if (myCounter > 0) {
    myCounter--;
  } else {
    $.mobile.changePage("#page1");
    mySplashPageTimer.stop();
  }
}
var mySplashPageTimer = $.timer(1000, mySplashPageCountDown);
$("#skipButton").click(function () {
  $.mobile.changePage("#page1");
  mySplashPageTimer.stop();
});
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!