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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:34:00+00:00 2026-06-16T15:34:00+00:00

Updated to fix the markup issue :/ http://jsfiddle.net/G7p2U/1/ that is the link to better

  • 0

Updated to fix the markup issue :/

http://jsfiddle.net/G7p2U/1/ that is the link to better understand everything

jQuery I am using is

$(document).ready( function() {
  $(".crumbs a").each( function() {
    $(this).append('<div class="indicator"></div>');
  });
var i = 0;
var linkpos= new Array("0,0", "0,110", "0,220", "0,330", "0,440", "0,550", "0,660");
    $(".crumbs").each( function() {
 var s = linkpos[i];
 var x = s.split(",");
 var t = x[0];
 var l = x[1];
$(this).css({ "top":t+"px", "left":l+"px" });
 i++;
 }); 
});

Problem is that when this was written it worked correctly, now there is the issue. Before the markup was like so

 <div class="pun-crumbs">
    <div class="crumbs">
     <a href="#">Index</a>
   </div>
  <div class="crumbs">
     <a href="#">Profile</a>
  </div>
     <div class="crumbs">
       <a href="#">Recent</a>
    </div>
    <div class="crumbs">
      <a href="#">Link 4</a>
   </div>
 </div>​

Though that is not how the PHP parse’s the data markup it actually comes out like so

 <div class="pun-crumbs">
   <div class="crumbs">
     <a href="#">Index</a>
      <a href="#">Profile</a>
        <a href="#">Recent</a>
         <a href="#">Link 4</a>
      </div>
    </div>​

So my trouble is now for some reason I can not get the links to separate like I need them too..

should look like so
http://jsfiddle.net/nXrDn/

Any help?

​

  • 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-16T15:34:02+00:00Added an answer on June 16, 2026 at 3:34 pm

    jsFiddle Demo

    You can reproduce your original markup starting from the new HTML by running the following script to prepare the elements:

    $(".crumbs > a").unwrap();
    $(".pun-crumbs > a").wrap("<div class='crumbs' />");
    

    All you have to do is put this first in your document ready handler, before your current code, as shown in the demo.

    This is pretty intuitive: it removes the .crumbs div (unwraps its children), then wraps each one in a new .crumbs div.

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

Sidebar

Related Questions

Updated Example: http://jsfiddle.net/7Cwbn/62/ You can click on the markers Hold Ctrl to select multiple
I updated my solution from .NET 3.5 to 4.0, and thanks god, I just
Im new to wpf, and looking for good tutorials to help understand triggers better
UPDATED (12/17/2009): Now reflects latest progress I've made. This is the first application that
We've recently updated a fairly large ASP.NET website (~1500th alexa traffic ranking) to use
It appears that since I updated my iPad to iOS 5.01 I can't debug
i am trying to FIX a crashed site designed by somebody else, designed using
While testing the fix for this issue: Slickgrid Horizontal Scrollbar Covers Last Row I
I just updated a page to use a DetailsView in asp.net. It included a
I updated .NET from 3.5 to 4.0 version, but after updating the assembly System.Web

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.