Sort divs numerically based on content using jQuery in Wordpress

  • Posted:
  • Proposals: 14
  • Remote
  • #2638996
  • Expired
TechnoSpark T.HawksCode T.Arun B.SDS SoftProDream S. Technologies + 9 others have already sent a proposal.
  • 5


Experience Level: Entry
I have number of divs a jQuery accordion on a page which I want to sort divs numerically based on content using jQuery in Wordpress.

I tried this sort function and it works for this test content but not for my accordion divs as they are generated dynamically and have complex html structure.

Here's the sort function I am trying to modify:

Here's the url of my test page:

1. Once the page is loaded, click on the drop down below jobid label and select the first job id 25078 from the list
2. Now the accordions will be refreshed and you'll see the "Victoria" according in the list
3. Expand the Victoria accordion and now you'll see 2 checkboxes divs : WQC908 and XTB708
4. If you look closely at the bottom of the divs, you'll see the Depot & Pickup Address Distance label
5. We need to sort these divs according to the distance in ascending order which means div 1 distance is 33.3 km and div 2 distance is 26.7 km, so using the jQuery sort function we need to show the divs with min distance being the first div and others 2nd, 3rd and so forth.

Please read the job post and instructions carefully beforing sending me the proposals as I don't have the capacity or time to keep explaining the same process or steps over and over again in the Workstream.

New Proposal

Create an account now and send a proposal now to get this project.

Sign up

Clarification Board Ask a Question

    There are no clarification messages.