Skip to main content

Bug Tracker

Side navigation

#9256 closed bug (invalid)

Opened May 12, 2011 03:15PM UTC

Closed May 12, 2011 04:19PM UTC

No option to prepend / append nested divs?

Reported by: Owned by:
Priority: low Milestone:
Component: manipulation Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Hi jQuery team! Kudos for developing web's hottest library, and a question:

today I tried to prepend a div within a div. No luck. App[arently, jQuery doesn't allow to. do so.

Here's what I did:

.prepend('<div id="outer-div"><div id="inner-div"></div></div>')

Alas, only the outer div ended up prepended to the page.

Am I missing something or is jQuery currently lacking the ability to prepend nested elements? Wouldn't it be cool to have this?

Best regards,

Dimitri Vorontzov

Attachments (0)
Change History (7)

Changed May 12, 2011 03:36PM UTC by timmywil comment:1

component: unfiledmanipulation
owner: →
priority: undecidedlow
status: newpending

I created a test case, but was unable to reproduce the issue. Please update the test case below or provide a new test case on to help us assess your ticket.

Changed May 12, 2011 03:46PM UTC by anonymous comment:2

Changed May 12, 2011 04:00PM UTC by comment:3

status: pendingnew

Actually, correction, just to make it perfectly obvious:

Still no trace of that inner div though.

Changed May 12, 2011 04:04PM UTC by comment:4

Damn, I'm not functioning porperly today. Had to fix it one more time:

However, still nothing has changed: the inner div is invisible, even though having the z-index of 999 and the color red it should be there.

Am I missing anything still?


Changed May 12, 2011 04:07PM UTC by comment:5

OK, I think in this case I can safely say it was my error. However, in a practical situation I encountered today, I really didn't have anything visible in the inner div. Let me try to recreate that very situation and see what happens.

Give me a few mins.

Changed May 12, 2011 04:15PM UTC by anonymous comment:6

Yep, I'm unable to recreate the issue, either. Now I know I must have made some kidn of coding mistake.

The issue is resolved for me, thank you.

No bug.

Best regards,

Dimitri Vorontzov

Changed May 12, 2011 04:19PM UTC by timmywil comment:7

resolution: → invalid
status: newclosed

Thanks for looking into it.