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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:03:26+00:00 2026-05-21T02:03:26+00:00

The above code works well in all browsers except in IE8 where it only

  • 0

The above code works well in all browsers except in IE8 where it only works in compatibility-mode. I removed all the markup inside the DIVs, there where huge TABLEs.
In IE8 when I check the checkbox(‘rf’), it is suposed to show only two DIVS(#frmRF and #frmAntenas), but it’s also showing the DIV(#frmTX), if you think the markup is not ok, it was generated by Zend_Form, I’d like to not have a hidden for each checkbox I create.

 <script>
$('input[name="rf"]').change(function(){
    if($(this).is(':checked')){
        $("#frmRF").show();
        $("#frmAntenas").slideDown();
    }else{
        $("#frmRF").slideUp('slow');
        if(!$('input[name="tx"]').is(':checked'))
            $("#frmAntenas").slideUp('slow');
    }
});
</script>

<TABLE>
<TR>
    <TD>
        <INPUT value=0 type=hidden name=rf ><INPUT id=rf value=1 type=checkbox name=rf> <FONT class=legenda>RF</FONT>
    </TD>
</TR>
</TABLE>

<div id=frmAntenas style="display:none;">
<fieldset> 
<legend>Especificações Técnicas da Solicitante:</legend>

    <div style='margin-top: 10px' id='frmRF' style="display:none;">

    </div>

    <div style='margin-top: 10px' id='frmTX' style="display:none;">

    </div>

</fieldset> 
</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-21T02:03:26+00:00Added an answer on May 21, 2026 at 2:03 am

    First of all sorry, I have no clue how to comment, don’t see any button for it.
    I think I’ve had a similar problem for a while and I have turned off slidedown for IE. I think this is just something IE doesn’t handle too well..
    So I think you should try this and see if it works:

       <script>
        $('input[name="rf"]').change(function(){
        var speed  = $.browser.msie ? 0 : "slow";
            if($(this).is(':checked')){
                $("#frmRF").show();
                $("#frmAntenas").show(speed);
            }else{
                $("#frmRF").hide(speed);
                if(!$('input[name="tx"]').is(':checked'))
                    $("#frmAntenas").hide(speed);
            }
        });
        </script>
    

    I believe slideup/down does the same as showing and hiding stuff (“slow”), so i adjusted that.

    Lauw

    Edit:

    It worked for me when I put it online and changed your HTML to the following:

    <div id=frmAntenas style="display:none;">
    <fieldset> 
    <legend>Especificações Técnicas da Solicitante:</legend>
    
        <div id='frmRF' style="display:none; margin-top: 10px">
    
        </div>
    
        <div id='frmTX' style="display:none; margin-top: 10px">
    
        </div>
    
    </fieldset> 
    </div>
    

    The thing here is that you were defining ‘style’ twice on the div, so it did not catch on to the display:none;
    Editted answer after commenting.
    Hope this solves it,

    Lauw

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

Sidebar

Related Questions

if (preg_match('(\p{Nd}{4}/\p{Nd}{2}/\p{Nd}{2}/\p{L}+)', '2010/02/14/this-is-something')) { // do stuff } The above code works. However this
My Jquery code doesn't seem to work in IE8 when adding a doctype above
The code bellow works well with latest version of Chrome on Linux and Windows,
a[i] = i++; Why does the above code not work? What is wrong with
scrollPosition = window.frames[id].document.body.scrollTop; The above code doesn't work correctly. Please tell me how to
I can't get this code to work. Declared playpauseButton just above the given below
<asp:TextBox ID=tbName CssClass=formField MaxLength=<%=Constants.MaxCharacterLengthOfGameName %> runat=server></asp:TextBox> The code above does not work. I can
In the above code, I am appending a javascript onclick method to the image
^0806EA^0406F0^^^^^^EF07F7--^E3DC03--^EAFE02-- ^0406F0^^^FFE209^^^DFF107^^^F6F508^^^E4DE01^^^EF07F7--^E803E6-- in the above code, i want to split this ^ but the
http://pastebin.com/1btVw8Cb There are two classes in the above code. So above is my code

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.