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

  • Home
  • SEARCH
  • 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 1047715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:20:42+00:00 2026-05-16T16:20:42+00:00

here is my code: $(‘.round’).each ( function ( ) { var content = $(this).html

  • 0

here is my code:

$('.round').each ( function ( ) {
    var content = $(this).html ( );

    $(this).removeClass ( 'round' );
    $(this).html ( '' );

    var inner = $(document.createElement('DIV')).addClass ( 'rc-inner' ).html ( content );
    var outer = $(document.createElement('DIV')).addClass ( 'rc-outer' ).append ( inner );
    $(this).append ( outer );
} );

ie7 gives me this error…:

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)
Zeitstempel: Sat, 4 Sep 2010 22:35:30 UTC
Meldung: Unerwarteter Aufruf oder Zugriff.
Zeile: 103
Zeichen: 460
Code: 0
URI: **SNIP**/libs/jquery/1.4.2.js

me and my team worked out the solution to add a special class to a div-box (example: round for rounded border) and after the page was loaded, the js should save the content of the given div-box, add two new div-boxes inside the given div… and add the saved content into the inner fresh created div-box…. firefox…knows how it was meant and do it fine!… ie give us some errors…. whyever…

every other js would stop because of this error… so, we don’T really know, what weshould change…. it’s just annoying…. fuckin ie -.-

  • 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-16T16:20:42+00:00Added an answer on May 16, 2026 at 4:20 pm

    I would simplify this overall side-stepping the issue by using an altogether different/simpler approach using .wrapInner(), like this:

    $('.round').removeClass('round')
              .wrapInner('<div class="rc-outer"><div class="rc-inner"></div></div>');
    

    You can give it a try here, this approach doesn’t destroy any event handlers and is all around cheaper than re-creating the elements from the HTML (once you have over a few elements inside the .round elements).

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

Sidebar

Related Questions

Here is code in form.html.erb for partial view. Local var :sid was defined as
In my gsp view, I have this code : <g:each in=${fileResourceInstanceList} status=i var=fileResourceInstance> <tr
Ok the error is showing up somewhere in this here code if($error==false) { $query
My code here works fine to get the content length, and tells me how
have a php code like this,going to convert it in to C#. function isValid($n){
I'm trying to match this block here /code\ int foo(string $bar, int $bleh); Simple
I'm having difficultly figuring out how to write this block of code... function myFunction(x,y,z)
The script is on jsfiddle here : CODE What it does at the moment
Here is code my jqgrid editing through form. $(#DataEnergy).jqGrid('navGrid', '#pagergrid', {}, //options {editdata: {
Here my code, I need to insert into mysql database I have mysql,php,android 1)

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.