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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:24:59+00:00 2026-06-15T20:24:59+00:00

Here is my JSFIDDLE CLICK HERE My problem is that I Have classes that

  • 0

Here is my JSFIDDLE CLICK HERE

My problem is that I Have classes that are the same that I want to move above a div class. So if your looking at my HTML you will notice that I have the class = catalogItemFooter. I want to move said class before class = catalogThumbnailArea. My issue is, there are multiple classes that share the same class. If you are looking at my fiddle you will notice that it moves both items above the other. I dont want this, I want the name to go above its coresponding catalogThumbnailArea and not add it to all the other ones.

My script so far

    $(".catalogItemFooter").parent().insertBefore("table.catalogThumbnailArea");

I realize that this may be complex, if you need more info please ask. Thank you.

  • 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-06-15T20:25:00+00:00Added an answer on June 15, 2026 at 8:25 pm

    Try this

    $("div.catalogItemFooter").each(function() {
        var $this = $(this);
        var $thumb = $this.closest('table').prevAll('table.catalogThumbnailArea')
                                                                            .first();
        $this.insertBefore($thumb);
    });
    

    ​

    I am looping over all the div with the corresponding class and inserting it to the corresponding table.

    Check Fiddle

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

Sidebar

Related Questions

Here is my fiddle: http://jsfiddle.net/jamesbrighton/wxWgG/4/ HTML: <div> <p class=click>Click 1</p> <p>This should be ignored</p>
You can se my problem here http://jsfiddle.net/eWh5F/76/ () what i want is to click
I have a fiddle here: http://jsfiddle.net/ybZvv/11/ The problem I have is that when you
jsfiddle is here: http://jsfiddle.net/M86nA/ code is this: $('div.wrap').click(function(){ var $minY = $('div.imgur-wrap').height(); if ($minY
My script is here : jsfiddle i have two attributes in my form that
I have a jsfiddle here: http://jsfiddle.net/ybZvv/22/ The situation I have is that if you
Here is a jsFiddle to explain my problem. If you try to click on
I have a problem : I use classes on a div for simplicity, I
I have an .on(click... event for my select that opens a dialog. The problem
Here a small snippet to show/hide text. The problem is that the click event

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.