Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Show hide not working in IE

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26281
    mkhululi
    Member

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.