problem using js to get a select list to display hidden fields

Discussion in 'JavaScript' started by coykiesaol, Apr 9, 2011.

  1. #1
    I'm having a problem using javascript with a form. I'm using javascript to determine whether or not a person has selected "yes" or "no" from the select list. If "yes" is selected, the form is supposed to slide down and reveal two more fields. If "no" is selected, the form is supposed to slide back up hiding those two fields again.

    When "yes" is selected, the form displays the two new fields properly. In Safari, it does the slideDown animation, yet in Firefox, the new form fields just suddenly display. If I select "no" again, nothing happens. The slideUp animation doesn't play. So currently I am having to use $("#parent1").hide(); to get the "no" to trigger.

    So my two questions are:
    1. Is there any reason the slide animation plays smoothly in Safari but not in Firefox?
    2. Why won't $("#parent1").slideUp("fast"); work when I select "no?"
     
    coykiesaol, Apr 9, 2011 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hard to say without seeing the code. Are you using the latest version of jQuery?
     
    Cash Nebula, Apr 12, 2011 IP
  3. codeartist

    codeartist Peon

    Messages:
    96
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    is there anyways that you can post your script so that we can check on them ?
     
    codeartist, Apr 15, 2011 IP