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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:59:10+00:00 2026-05-26T17:59:10+00:00

I have a simple jquery tab, which works fine in all browser except ie

  • 0

I have a simple jquery tab, which works fine in all browser except ie 7 & 8. Cant see an issue with it.

      $('#tabs > div').hide();
      $('#tabs div:first').show();
      $('#tabs ul li:first').addClass('active');

      $('#tabs ul li a').click(function(){
        $('#tabs ul li').removeClass('active');
        $(this).parent().addClass('active');
        var currentTab = $(this).attr('href');
        $('#tabs > div').hide();
        $(currentTab).fadeIn(400).show();
        return false;
      });

Here is the tabs:

        <div id="tabs">  

            <!--Menu-->          
            <ul class="grid12 first menu">
                <li class="grid3 first">
                    <a href="#tab-1">ABOUT US</a>
                </li>
                <li class="grid3">
                    <a href="#tab-2">FACILITIES</a>
                </li>
                <li class="grid3">
                    <a href="#tab-3">SPECIALS</a>
                </li>
                <li class="grid3">
                    <a href="#tab-4">CONTACT</a>
                </li>  
            </ul>

            <!--Content Area-->
            <div id="tab-1">
                <div id="about">
                    <div class="grid5 first"> <a href="http://www.treacyshotelwaterford.com"><img src="http://www.ingemit.com/res360/facebook/about.jpg" alt="Spirit Spa"></a></div>

                <div class="grid7">
                    <h1>
                        <em>Welcome to Treacys Hotel Waterford, Spa & Leisure Centre</em></h1>
                    <p>
                        <strong><span class="drop-caps">F</span>ormerly Days Hotel Waterford, Treacy's Hotel Spa & Leisure Centre is situated in the heart of Waterford City in Ireland's Sunny South-East, and is proud to be one of the finest hotels in Waterford.  The hotel is the perfect choice for your business, leisure and family breaks.  Guests can dine in Croker's Restaurant, enjoy a drink with friends in Timbertoes bar, relax in the swimming pool or Jacuzzi at Spirit Leisure Centre or be pampered at Spirit Beauty Spa.</strong>
                    </p>
                    <p>
                        The hotel is ideally located on the Quays in Waterford and is just a five minute walk from both the bus and train stations, and only 10km from Waterford Airport.  Treacys hotel is one of the finest hotels in Waterford city centre and is a popular location for visitors who love shopping, golf, surfing, or choose from our selection of great value packages, including pampering spa breaks and activity breaks.
                    </p>
                    <p>
                        Planning your wedding? See why we are one of the best wedding hotels in Waterford. Whatever the reason come and see us and you can be assured of a warm welcome and a great time.
                    </p>
                </div>
                </div><!--about end-->
            </div><!--tab1 end-->  

            <div id="tab-2">
                <div class="grid12 first">
                    Facilities
                </div>
            </div>

            <div id="tab-3">
                <div class="grid12 first">
                    Specials
                </div>
            </div>

            <div id="tab-4">
                <div class="grid4 first">
                  <h2>Contact Us</h2>
                    <p><strong>Address:</strong> <span class="lightgrey">1458 Sample Road, Greenvalley, 12</span><br>
                      <strong>Telephone:</strong> <span class="lightgrey">+123-1234-5678</span><br>
                      <strong>FAX:</strong> <span class="lightgrey">+458-4578</span><br>
                      <strong>Others:</strong> <span class="lightgrey">+301 - 0125 - 01258</span><br>
                  <strong>E-mail:</strong> <span class="lightgrey">mail@yoursitename.com</span></p>
                </div>

                <div class="grid8">
                    <p>Map image</p>
                </div>
            </div>
        </div>
  • 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-26T17:59:10+00:00Added an answer on May 26, 2026 at 5:59 pm

    What IE does when it sees href="#something" is that it appends the URL before it:

    So for example on this page if you did:

    $('a').click(function(){
       alert(this.href);
    });
    

    It would alert http://stackoverflow.com#something

    What you need to do is utilize another part of the <a> tag to do your defining. Try formatting the tag like so:

                <li class="grid3">
                    <a href="#tab-4" data-link="tab-4">CONTACT</a>
                </li>  
    

    Then in your code you can do:

       var currentTab = "#"+$(this).data('link');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working on a project which uses Jquery(1.6) Tabs, works all good but wondering if
I have a simple jquery animation on a div, which is inside a div,
I have a simple jquery/ajax request to the server which returns the structure and
I have a very simple jQuery script.. all I want it to do is
I have written a simple jQuery.ajax function which loads a user control from the
I have a simple bit of jQuery which displays the row below the current
I have a simple JavaScript file that has three jQuery $document.ready functions. All three
Here is my problem: The Problem I have created Tabs using jQuery which is
i have some simple jquery tabs: <script> $(function() { $( #tabs ).tabs(); }); </script>
I have a simple Tab Navigation with jquery. Whenever a new tab is clicked,

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.