treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Show hide not working in IE

  • Hi,

    I have a slight problem with this 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.