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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:24:58+00:00 2026-05-22T22:24:58+00:00

I finished coding my jQuery site but I have found that .live jQuery is

  • 0

I finished coding my jQuery site but I have found that .live jQuery is not supported with IE9 or in fact any IE.

Or at least that is my experience.

I am wondering how to get IE to do the following

$('ul#mainmenu a li').live('click', function(event){
        //alert(this.id);

        $("li#"+lastpageid).removeClass();
        fetchpage(this.id);


        var text = '';
        $('a li#'+this.id+'').contents().each(function(){
        if(this.nodeType === 3){
         text += this.wholeText;
        }
        });

        $("#largemenutop").html(text);

        $("li#"+this.id).addClass("active");
        lastpageid = this.id;
});
  • 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-22T22:24:59+00:00Added an answer on May 22, 2026 at 10:24 pm

    Like others have pointed out make sure your HTML structure makes sense i.e. put the anchor INSIDE the li <li><a href="">blah</a></li> not <a href=""><li>blah</li></a>

    <li> is a structured list, doing the above has no structure meaning and isn’t the right way to do things.

    If your aim is to have the anchor take up the full with of the list item, then make the anchor a block element in CSS: li a { display: block; }

    Anyway, you could try using .delegate in this situation. I’ve restructured your code, I’m assuming fetchpage works as expected.

    var $lastAnchor = jQuery();
    
    $('#mainmenu').delegate('a', 'click', function() {
        var $this = $(this);
    
        $lastAnchor.removeClass('active');
    
        fetchpage(this.id);
    
        $('#largemenutop').html(
            $this
              .addClass('active')
              .contents()
              .filter(function() { return this.nodeType == 3; })
              .text()
        );
    
        $lastAnchor = $this;
    });
    

    Ensure it’s all inside $(document).ready(function() { });

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

Sidebar

Related Questions

I've pretty much finished coding a SIC assembler for my systems programming class but
After I finished coding the difficult parts of my game, I found some memory
I'm new to computer coding and have just finished coding an app and tested
I know it's 'technically' not the best practice to be hard coding strings; but
I just finished coding my program but am facing a few logic errors. I
I have heard that writing (coding) unit tests for your application effectively doubles the
I have just finished coding up a relatively involved web service in PHP. The
I'm coding a website in pure AS3 using FlashDevelop and have an object that
I'm coding a site that makes heavy use of AJAX to load pages for
I'm nearly finished with this project but I have been beating my head against

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.