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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:20:14+00:00 2026-05-20T08:20:14+00:00

I have a HTML Table which in which i want to manipulate using JQuery

  • 0

I have a HTML Table which in which i want to manipulate using JQuery

Table:

<tr><td>----Parent One
<Table id="ChildID" >----Child One

First TR1<TR>

<TD><div class=ExternalClass00FA6D5A488C4B2582667D6D8DF15F79>Value 1</div></TD>

<TD class="ms-disc-bordered-noleft">Value 2</TD>

<TD class="ms-disc-bordered-noleft">Value 3</TD>

<TD class="ms-disc-bordered-noleft">
<A HREF="/Threaded.aspx?RootFolder=%2fLists&amp;FolderCTID=0x01200">Value 4</A>
</TD></TR>

..........

Second TR2<TR>

<TD><div class=ExternalClass00FA6D5A488C4B2582667D6D8DF15F79>Value 1</div></TD>

<TD class="ms-disc-bordered-noleft">Value 2</TD>

<TD class="ms-disc-bordered-noleft">Value 3</TD>

<TD class="ms-disc-bordered-noleft">
<A HREF="/Threaded.aspx?RootFolder=%2fLists&amp;FolderCTID=0x01200">Value 4</A>
</TD></TR>

........and so on

</TABLE>---Child One

</td></tr></TABLE>---Parent One

i am trying to pick “Value 4” the last having string “FolderCTID” in href and insertBefore “Value 1” with div class that starts with “ExternalClass”.

I want to insertBefore the each element in the row to the corresponding element in the same row

I am using following code:

$(‘a[href*=”FolderCTID”]’).insertBefore($(‘div[class^=”ExternalClass”]’));

But it is inserting all the elements for every row….i think i should make something to specify the entities and loop around** each end of the entity…

Please help me on this

  • 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-20T08:20:15+00:00Added an answer on May 20, 2026 at 8:20 am

    then you may want this,
    try this , and let me know,

    $('a[href*="FolderCTID"]').each(
        function(){
            $(this).parents('tr').find('div[class^="ExternalClass"]').before(this);
        }
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a repeater control outputting some HTML. I want a table which outputs
I have a HTML table which I want to make fluid so that when
I have a HTML document with the a table which I want to replace,
I have an HTML table in which the first column's cells each contain a
I have an html table which i bind data dynamically on the server side
This one is weird, I have a page that consists of a html table
I have an HTML table which has an onClick property on the row which
I have an html table which contains records, comes from mysql db. Each row
I have a html table which if filled by values of an mysql table.
I have a HTML table which I add items to from javascript on an

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.