|
Posted by Jim Higson on 09/14/05 14:00
Dada wrote:
> I am developing an homepage and I need to create a very detailed
> form. I need some dynamic features for it.
> The first one should make possible to make a question to appear or
> disappear, depending on what you have answered to the previous one.
> Example.
> 4) Do you like this? YES - NO
> if you select NO question number 5) should dissappear, otherwise, if
> you select YES nothing should happen. The only thing I have found it's
> for CHECKBOXES and not RATIO BUTTONS. And it isn't good for my
> purpose.
> The second thing I should create is a connection between two RATIO
> BUTTONS and a TEXT FIELD
> Example
>
> 8) Can you tell me something about New York?
> If you select the YES Ratio Button it should activate a text field
> where to write your answer; if you select the NO button the text field
> should be blocked.
>
> I wish someone of you could help me to make that things work.
Use some javascript DOM and set element.style.display = "none" for the bits
you want to hide. This should be pretty easy to research.
> The very last question: this kind of scripts would work only with
> Internet Explore?
Only if *very* badly coded. Mozilla is best for this kind of work because
their DOM inspector can be used to examine pages in a lot more detail with
IE, where all you can really do is try to guess why stuffs rendered like it
is.
Navigation:
[Reply to this message]
|