Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8879567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:58:40+00:00 2026-06-14T19:58:40+00:00

I am trying to add a countdown timer (using this one http://keith-wood.name/countdown.html ) to

  • 0

I am trying to add a countdown timer (using this one http://keith-wood.name/countdown.html) to a td based on the text of another td within the same table using jQuery.

For example my table looks like this below and I want to add the timer to the time_remaining td if the status td contains the text “Received”.

<table>
    <tr>
        <td class="status">Completed</td>
       <td class="time_received"></td>
       <td class="time_remaining"></td>
    </tr>
    <tr>
        <td class="status">Received</td>
        <td class="time_received"></td>
        <td class="time_remaining"></td>
    </tr>        
</table>

And my jQuery currently looks like this below, but I’m using $(this).next() which will only add the timer to the time_received td, but I need to add it to the time_remaining td, what can I use instead of .next()? Any help would be appreciated.

 var newCount = new Date(); 
 newCount.setMinutes(newCount.getMinutes() + 30);
 $('td.status:contains(Received)').each(function() {
   $(this).next().countdown({
        until: newCount, 
        format: 'M',
        layout: "{mn} min"
        });
​});​
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:58:41+00:00Added an answer on June 14, 2026 at 7:58 pm

    You can pass a selector to next and use an index to specify which – in your case there is just one sibling with the time_remaining class, so it’s the same

    .next(".time_remaining")[0]
    

    Alternatively, if you always want the second sibling you could do

    .nextAll()[1]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add more than one countdown timer with the same date on
I'm trying add a tab to my web page that looks like this: Using
Trying to add a second line to this so it shows the Name of
So I am trying to add a timer to one of my if statements
I using codeigniter to trying add text in routes.php , What I want to
Hey im trying to add countdown timers to an arraylist but it is crashing.
I'm trying add data triggers to the default combobox style so each text item
Trying to add a class object into a List using reflection, but when invoking
I am trying to add this code, generated by a WordPress plugin, to the
I trying to extend ConuntDownTimer to add the methods pause and resume in this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.