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 3240852
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:07:56+00:00 2026-05-17T18:07:56+00:00

I have 5 divs, each having count down timers. The following numbers would obviously

  • 0

I have 5 divs, each having count down timers. The following numbers would obviously be be divided by <br/>‘s , but for the sake of the example I am trying to be as clear as possible 🙂

Example before sort

4.39
3.45
2.11
3.56
1.11

Example after sort

4.39
3.56
3.45
2.11
1.11

And each countdown counts to 0 obviously. I had in mind, that when a timer reaches 0, that div is sorted automatically sorted and put down in the last position, and then starts again.

I was looking at Jquery’s website, and the ones I found are drag related, meaning you have to click on the DIV, and move it yourself. I would like to achieve that animation automatically, by a method that sorts out DIVS according to the timer.

Anyone have a code snippet, one which I didn’t find already, that I might find handy? 🙂

All help is greatly appreciated!! Thanks!!

  • 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-05-17T18:07:56+00:00Added an answer on May 17, 2026 at 6:07 pm

    You can get your list using normal jquery selectors. Put all the elements inside a single ul or something and read then out using vanilla jquery.

    For sorting, you can use the sort method available for Javascript arrays.

    To move the li items into place, you can use either reposition then with some animation (perhaps using the position function in jquery-ui) or simply replace the contents of the ul with a sort list of li‘s

    Finally, to do this repeatedly, you can use the setInterval function.

    It might also be possible to tie in some triggers to the jquery-ui sortable and then just call that from your setInterval expression. I haven’t tried this though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the code below I have 2 divs, each having two nested divs. When
I keep finding that if I have nested divs inside each other, and one
I have 3 divs with 2 possible image tags for each (active or inactive).
i have the following jquery code. basically i will have several overlapped divs and
I'm having a minor css issue. I have a series of layered divs and
I have two divs floating next to each other, with class name div1 and
I have two divs inside a div, I want them both adjacent to each
I have three divs : <div id=login /> <div id=content /> <div id=menu />
I have three DIVs, something like this: <div id=header> ... </div> <div id=content> <div
I have three divs: A, B and C. A is currently visible and I

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.