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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:41:24+00:00 2026-05-21T07:41:24+00:00

Works fine in firefox but does nothing in ie. <script type=text/javascript> $(document).ready(function(){ var links

  • 0

Works fine in firefox but does nothing in ie.

<script type="text/javascript">
$(document).ready(function(){
    var links = $('.bound');
    var west = $('.west');
    var west2 = $('.west2');
    var west3 = $('.west3');
    var west4 = $('.west4');
    west2.hide();
    west3.hide();
    west4.hide();
    links.click(function(event){
       west.hide();
       west2.hide();
       west3.hide();
       west4.hide();
       west.filter('.' + event.target.id).show();
       west2.filter('.' + event.target.id).show();
       west3.filter('.' + event.target.id).show();
       west4.filter('.' + event.target.id).show();
    });
});
</script>

html

<div class="tabset">
            <div id="tab1" class="tab-box">
                <div class="form-holder">
                    <form action="#">
                        <fieldset>
                            <label for="lb02"><strong>Choose District:</strong></label>
                            <select id="lb02">
                                <option class="bound" id="west">WEST</option>
                                <option class="bound" id="west2">WEST2</option>
                                <option class="bound" id="west3">WEST3</option>
                                <option class="bound" id="west4">WEST4</option>
                            </select>
                        </fieldset>
                    </form>
                </div>
                <div class="report-box">
                    <table>
                        <thead>
                            <tr>
                                <td class="name">Name</td>
                                <td class="department">Department</td>
                                <td class="title">Title</td>
                                <td class="district">District</td>
                                <td class="profile">&nbsp;</td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="west">
                                <td>Name1</td>
                                <td>Dept2</td>
                                <td>Title2</td>
                                <td>West</td>
                                <td><a class="btn-profile" href="#">PROFILE</a></td>
                            </tr>
                            <tr class="west2">
                                <td>Name2</td>
                                <td>Dept2</td>
                                <td>Title2</td>
                                <td>West2</td>
                                <td><a class="btn-profile" href="#">PROFILE</a></td>
                            </tr>
                        </tbody>
                    </table>
                </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-21T07:41:24+00:00Added an answer on May 21, 2026 at 7:41 am

    Instead of a click event on the option elements, use a change event on the select element.

    var links = $('#lb02'),
        wests = $('.west,.west2,.west3,.west4');
    wests.not('.west').hide();
    links.change(function(event) {
        wests.hide().filter('.' + this.options[this.selectedIndex].id).show();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to submit a form with javascript. Firefox works fine but IE complains
A site works fine with Chrome, FireFox, IE8 but does not work with IE7
The following script works fine on Firefox, but fails on IE8 and I'm not
I can't seem to get it to work. It works fine in Firefox, but
I have a Greasemonkey script that works just fine in Firefox and Opera. I
This keypress event works fine for me in Chrome and Firefox, but simply isn't
the following js works fine in FF2 but in IE6 the dropdown always selects
I have a script that works fine on my test server (using IIS6). The
Everything works fine when the unit tests class is part of the main project
While Ctrl X works fine in vim under windows, Ctrl A selects all (duh).

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.