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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:29:52+00:00 2026-05-20T19:29:52+00:00

I have a table: id1 || desc-name – 1 id2 || desc-name – 2

  • 0

I have a table:

id1 || desc-name - 1
id2 || desc-name - 2
id3 || desc-name - 3
id4 || desc-name - 4
id5 || desc-name - 5

I would like to clone row 3 and 4 and flip them:

id1 || desc-name - 1
id2 || desc-name - 2
id4 || desc-name - 4
id3 || desc-name - 3
id5 || desc-name - 5

I have to use clone methodologies rather than jQuery.

I have figured out how to clone the rows and delete the current rows out of the table, however, I can’t figure out how to replace the cloned rows in the right position?

Any ideas?

  • 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-20T19:29:53+00:00Added an answer on May 20, 2026 at 7:29 pm

    Do you have jQuery in your project all, even though you are using a different methodology? If so, I believe that moving the row is as easy as calling

    $('#id3').insertAfter($('#id4'));
    

    I’m not sure how to do this is plain old JS, but I figured I would post this in case jQuery was an option for you.

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

Sidebar

Related Questions

Here is the thing, I have table like this First one ID1 ID2 ID3
I have four tables TableA: id1 id2 id3 value TableB: id1 desc TableC: id2
I have a table that looks like this A B ID1 data 123 ID2
I have table data like this id id1 name 1 1 test1 1 1
i have two temporary table Table 1 ID1 Name ID2 Single ---------------------------------------------------- 1 ABC
i have two temporary table Table 1 ID1 Name ID2 Single ---------------------------------------------------- 1 ABC
If I have a table with columns like ID1 ID2 VAL1 VAL2 Where ID1,ID2
I have table with 50 entries (users with such details like Name Surname Location
I have a news table and I would like to implement custom ordering. I
I have a table: ID | Id1 | Id2 1 | 100 | 12

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.