Results 1 to 3 of 3

Thread: conditional dynamic / visible form elements

  1. #1
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question conditional dynamic / visible form elements

    I'm attempting to create a form that will show an additional select form element if the user selects one particular option from the select form element above it. For instance, Element 2 should be hidden unless option3 is selected in Element 1.

    This should be a relatively straightforward conditional in javascript that checks the value of element 1 and if it equals option 3's value then Element 2 becomes visible.

    Thanks in advance.

  2. #2
    Join Date
    Feb 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have the exact same question...
    I too am trying to build a dynamic form with conditional elements (appearing only if this element is checked or if this element's value is x...)

    I thought I could alter the code from the dynamic drop down code found here, but no go.

    I too would greatly appreciate any assistance with this one.



    Just like pwdavis, I'm trying to set this up so (for example) if the user clicks a checkbox, another element appears - and if they uncheck the checkbox, that same element will disappear. I have seen this done before, but can't for the life of me remember where.

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    As I just posted in another thread, this subject has been done to death on Usenet. If the link in that thread doesn't help, you can always take a look through the comp.lang.javascript archives yourself (remember to select the "Search only in comp.lang.javascript" radio button).

    Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •