Grow your CSS skills. Land your dream job.

Show hide not working in IE

  • # September 29, 2009 at 8:21 am

    Hi,

    I have a slight problem with this code:

    Code:
    $(this).change(function(){
    if ($(typeTwo).is(‘:checked’) || $(typeThree).is(‘:checked’)) {
    $(answers).slideDown(‘slow’);
    $(“#answerLabel”).slideDown(‘slow’);
    $(‘#possible-answers_hint’).slideDown(‘slow’);
    } else {
    $(answers).slideUp(‘slow’);
    $(“#answerLabel”).slideUp(‘slow’);
    $(‘#possible-answers_hint’).slideUp(‘slow’);
    }

    return false;
    });

    It works fine in all browsers except IE8 (did not test on other versions of IE).

    Here is what is expected functionality of the code:
    I have a form with four radio buttons and if two of the buttons(typeTwo and TypeThree) is clicked a textarea (with its label and a little hint at the bottom) must appear otherwise it must not.

    I am not sure what if there is anything I am missing something…

    Thanking you.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".