|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi! I am attempting to make a form element appear based on a user selection from a dropdown but not having any luck. I hope y'all can help me! Here is what I have so far:
PHP Code:
Many thanks in advance! Joe of 4Life
__________________
Check out 4Life today! Last edited by Joe4JC : September 2nd, 2003 at 07:38 PM. |
|
#2
|
||||
|
||||
|
MmmK - there's a few things wrong here.
a) Be careful with your variable naming. You have used a few words that are normally considered reserved words. (type, description, etc) b) For IE, the show/hide property is called "visibility", not display. c) For IE, "hidden" or "visible" are the visibility property values. Don't use "none". d) I don't follow your logic in the Javascript. Shouldn't the ELSE statement belong to the "is value == 'poll'" IF statement? |
|
#3
|
|||
|
|||
|
Thank you, stumpy! I currently I am trying to get this working with Mozilla 1.4. (I'm on FreeBSD so I can't use IE.) I'll try and answer your questions to the best of my ability.
a.) Ok, thanks for the tip; i'll be sure to change that! b.) Allright, I'll see if that will work. c.) [See above.] d.) Yes, I accidently misplaced a "}". Please note that I do not normally write JavaScript, so I am not 100% sure of what I am doing. Thank you very much for your kind and helpful response! Joe |
|
#4
|
||||
|
||||
|
No worries mate - I actually grabbed your code, and made the changes i suggested and got it going, but, unfortunately, only on IE (i didn't try mozilla, etc). From memory, the show/hide methods are called something different to IE in Mozilla.... surely there's a ref manual you can get the official naming from.
|
|
#5
|
|||
|
|||
|
Ok, I finnaly fixed it for Mozilla. If you want the code, just leave a message here cause I'll have to pack it into a separate file.
Cheers, Joe of 4Life jc4life.org |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > dynamic script not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|