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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:30:37+00:00 2026-05-28T00:30:37+00:00

I have a problem in IE7 using jQuery’s .wrap function. I have a list

  • 0

I have a problem in IE7 using jQuery’s .wrap function. I have a list of elements. On click I do something like this:

function wlt(father) {
  hlms = $(father).find('.moreSpan a').attr('href');
  tlms = $(father).find('.moreSpan a').attr('title');

  // Add/remove link on h2
  $(father).find('h2 > .bold').wrap('<a></a>');
  $('.stripClose h2 > a > .bold').unwrap();
  $(father).find('h2 > .bold').wrap('<a href="' + hlms + '" title="' + tlms + '"class="searchtitle_i"></a>');

  // Add/remove link on Showcase H2
  $(father).find('h2 > .linkAllTitle ').wrap('<a></a>');
  $('.stripClose h2 > a > .linkAllTitle').unwrap();
  $(father).find('h2 > .linkAllTitle ').wrap('<a href="' + hlms + '" title="' + tlms + '"class="searchtitle_i"></a>');
}

Basically in each web browser this code works: it displays the content of a div and adds a link to the li element clicked.

In IE7 when I click on the li element the page displays the content of the div and then goes to the link added by jQuery. Do you have an idea of what’s going on?

  • 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-28T00:30:38+00:00Added an answer on May 28, 2026 at 12:30 am

    It sounds like your click event is continuing to propagate or maybe a mouse button up event is triggering the link. Is it possible to call the wlt function like so?

    $(father).click(function(event) {
         event.stopPropagation(); 
         function wlt(father);
         }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using jQuery 1.6.1 and I have some code that's erroring out in IE7,
I have a strange problem with the jQuery accordion plugin and IE7 (and maybe
I have this strange issue with my web app. You see, I'm using jQuery
I have problem with the :hover pseudo-class of CSS. I am using it like
I have this elements on my site which are added dynamically on jQuery's document.ready
I have the following jquery code: $(function() { $('.sliding-buttons').click(slidingContent); }); function slidingContent(e) { var
I have cascaded dropdown in my application, cascaded using jquery, now my problem is
I have problem with displaying adsense ads in ie7 google adsense adds an iframe
I have a problem with flash content in IE7 being always over the menu
I have a problem on my site's login page in IE7 browser. One of

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.