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

  • SEARCH
  • Home
  • 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 5988999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:02:18+00:00 2026-05-22T23:02:18+00:00

Is it possible to sort DIVs, based on value from the form the DIV

  • 0

Is it possible to sort DIVs, based on value from the form the DIV contains?

Hare is the HTML, to better get a visual idea how the HTML looks like

http://jsfiddle.net/littlesandra88/gtYBE/1/

Here is the HTML simplified to illustrate the problem:

<div id="contentEdit">
  <div class="row">
    <div class="cellHeader"> ID    </div>
    <div class="cellHeader"> Title </div>
  </div>

  <div id="content">

    <div id="127">
      <form action="" method="post">
    <div class="row">
          <!-- ----- cell one -----              -------------------------- cell two ----------------------- -->
      <div class="cell"> 127 </div>   <div class="cell"> <input name="title" value="dfg" type="text" /> </div>
    </div>
      </form>
    </div>

    <!-- next row -->

    <div id="27">
      <form action="" method="post">
    <div class="row">
      <div class="cell"> 27 </div>   <div class="cell"> <input name="title" value="afg" type="text" /> </div>
    </div>
      </form>
    </div>

  </div>
</div>

What I would like is to be able to click on a button to sort each row i.e. <div id="127"> and <div id="27"> based on the content of <div class="cell"> 127 </div>, (the content is here 127).

Another button should sort the rows based on form value.

Is that possible?

  • 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-22T23:02:19+00:00Added an answer on May 22, 2026 at 11:02 pm

    Here is is an example of sorting by the id: http://jsfiddle.net/ryanrolds/CuJ9T/

    The above example doesn’t require jQuery. It’s not a drop in solution for your exact problem but it should give a very good idea how to solve your current problem.

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

Sidebar

Related Questions

Is it possible to sort results from Core Data based on the entity type,
is it possible to sort div by using the data function? html <div id=gp_21
Is it possible to sort div layers? Examples only show list items being sorted.
How is it possible to sort data from multiple tables by relevance? My table
Is it possible to stack up multiple DIVs like: <div> <div></div> <div></div> <div></div> <div></div>
I have a TD that contains two divs. The first div contains text and
Possible Duplicate: Easiest way to sort DOM nodes? I have a list of DIVs,
Is it possible to sort users by how much karma they have from getting
Possible Duplicate: Sort an array by a child array's value in PHP I have
Is it possible to sort the values retrieved from MySQL, in say descending id

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.