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

  • Home
  • SEARCH
  • 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 6735529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:01:23+00:00 2026-05-26T11:01:23+00:00

I have some code that works on my IIS 5.1 dev box, but not

  • 0

I have some code that works on my IIS 5.1 dev box, but not on our IIS 6 production server OR in Firefox. I’m hoping to find some code that will accomidate both our production server and Firefox.

Here’s what’s happening:

I have a label that should initially display as hidden. I basically use this label to hide the entire row.

             <label for="lbCloseDate" id="lbCloseDate" style="display:none">
          <tr>
            <td bordercolor="#f0f0e4" bgcolor="#f0f0e4"><h3>Close Date</h3></td>
          </tr>
          </label>

Then, i use this javascript to unhide it, based on the value of a combo box:

    function statusShowHide()
{
    var cboStatus = document.getElementById('cboStatus');
    var lbCloseDate = document.getElementById('lbCloseDate'); 

    if cboStatus = 'Closed') 
    {
        lbCloseDate.style.display = "";
    }
}

Basically, what’s happening in Firefox and our prod server is that the label/row doesn’t hide. I don’t have an error; it’s just not getting hidden like I want.

I don’t need to use a label to hide the row…it’s just the only way I knew how. So, if something is more preferable that accomplishes the same goal, I’m open to it. Thanks!

  • 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-26T11:01:24+00:00Added an answer on May 26, 2026 at 11:01 am

    your missing a ( here
    also == for comparing, single = for assigning.

    if (cboStatus == 'Closed') 
        {
            lbCloseDate.style.display = "";
        }
    

    is it getting into this block? if so, i’d recomend changeing the .display = “”; to .display = “none”

    you can also just give your tr an ID, and use that to hide/show the row instead of the label. will be more syntactically correct.

    EDIT:

    Here’s a fiddle with a working example:
    http://jsfiddle.net/2FDPg/

    Here’s the basics:

    function showOrHideRow(){
        var theRow = document.getElementById('closeRow');
        var theDropDown = document.getElementById('ChangeMe');
    
        var theVal = theDropDown.options[theDropDown.selectedIndex].value;
    
        if(theVal == 'Closed'){
             theRow.style.display = 'none';   
        }
        else{
            theRow.style.display = 'block';
        }
    
    }
    

    and the html:

    <table>
        <tr id="closeRow">
    
            <td>Close Date:</td>  
        </tr>
        <tr>
            <td>another row</td>
        </tr>
    
    </table>
    
    <select id="ChangeMe" onChange="showOrHideRow()">
        <option value="">Change me</option>
        <option value="Closed">Hide It</option>
        <option value="Open">Don't Hide It</option>
    </select>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that works fine in FF but not in IE. I
i have some javascript roll over code that works fine in firefox but when
I have some very basic semaphore code that works great on Linux, but cannot
I have some Python code that works correctly when I use python.exe to run
I have some JavaScript code that works in IE containing the following: myElement.innerText =
I have some Linq code, that works fine. It retrieves a list of board
I have to work on some code that's using generic lists to store a
I have code examples from some of my previous work that help me to
I have some code that gives a user id to a utility that then
I have some code that uses the shared gateway pattern to implement an inversion

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.