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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:28:43+00:00 2026-06-15T15:28:43+00:00

The program I’m working in I can wrap images with a div and I

  • 0

The program I’m working in I can wrap images with a div
and I can name it’s ID so it’s like this:

<div id="caro" style=" position:absolute; top:0px; left:0px; width:602px; height:0px;  z-index:2;">

          <div id="SGROBJ7DCC09717112EB0" style=" position:absolute; top:68px; left:148px; width:602px; height:200px;  z-index:3;">
            <img src="Untitled_1/goim003.jpg" width=602 height=200 border=0 alt="">
          </div>

          <div id="SGROBJ7DCC09717112FF0" style=" position:absolute; top:68px; left:148px; width:602px; height:200px;  z-index:4;">
            <img src="Untitled_1/goim004.jpg" width=602 height=200 border=0 alt="">
          </div>

          <div id="SGROBJ7DCC09717113140" style=" position:absolute; top:68px; left:148px; width:600px; height:200px;  z-index:5;">
            <img src="Untitled_1/goim005.jpg" width=600 height=200 border=0 alt="">
          </div>
 </div>

I want to get that style from the first child and append it to the parent #caro div
Then remove all the div’s around the images. (Those SGROBJ… ID’s change)
That I can then use these for a carousel
So I want to end up with:

<div id="caro" style=" position:absolute; top:68px; left:148px; width:602px; height:200px;  z-index:3;">
            <img src="Untitled_1/goim003.jpg" width=602 height=200 border=0 alt="">
            <img src="Untitled_1/goim004.jpg" width=602 height=200 border=0 alt="">
            <img src="Untitled_1/goim004.jpg" width=602 height=200 border=0 alt="">
            <img src="Untitled_1/goim005.jpg" width=600 height=200 border=0 alt="">
 </div>
  • 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-15T15:28:44+00:00Added an answer on June 15, 2026 at 3:28 pm

    To apply the style from the first child:

    $('#caro').attr('style', $('#caro > div:first').attr('style'));
    

    To remove the DIVs leaving the images intact:

    $('#caro > div > img').unwrap();
    

    To it all in one statement:

    $('#caro').attr('style', $('#caro > div:first').attr('style')).find('div > img').unwrap();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Program I'm making has a simple configuration file looking something like this. @overlays =
my program is like this: char *line = hello a b c d e
Program that calculates and shows the value of (2 to the 10th power) This
This program builds a dictionary out of a list based on what two index
This program returns: package main import ( flag fmt ) func main() { num_agents
This program runs just fine, but for some reason when I ask for an
program s; type info = record name, surname: string; min, sec: integer; end; arrays
Program: program s; type info = record name, surname: string; min, sek: integer; end;
The program that I am working on takes a file and parses it line
This program so far has one purpose, take in two integers(the size of the

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.