/    Sign up×
Community /Pin to ProfileBookmark

Form – If selected, new fields

Hi i have a php form but its the html I working on now.
Its a form that has a drop down box and what I want is that if one of the items in the box is selected it will imediatly add new fields that relate to that selection.
I would love a push in the right direction if anyone has some input. thanks

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@CharlesJun 01.2006 — Keep in mind that about one in ten do not use JavaScript so you have to be careful. Start with a page with all of the form fields present and viewable; define a class named "hidden" or so - and set the CSS display property to "none" - and then onload use JavaScript to assign "hidden" to all of the fields you want to hide. Then use JavaScript to clear that className as desired.
Copy linkTweet thisAlerts:
@Clint_MalarchukauthorJun 01.2006 — Sounds complicated. Can you elaborate on what you mean about one in ten do not use JS. I'm going to start looking around the web for example sites to post here. thanks for the replies tho.
Copy linkTweet thisAlerts:
@CharlesJun 01.2006 — Can you elaborate on what you mean about one in ten do not use JS.[/QUOTE]What's to elaborate? Some people, like myself, find the web a much more pleasent place with JavaScript disabled. Some can't use JavaScript because of some disability.
Copy linkTweet thisAlerts:
@Clint_MalarchukauthorJun 01.2006 — ohh i see.thats what i'm talking about. i dont want any JS so i was thinking of some onload or dynamic structure.
Copy linkTweet thisAlerts:
@pcthugJun 02.2006 — ...so i was thinking of some onload or dynamic structure[/QUOTE]umm... yea Javascript
×

Success!

Help @Clint_Malarchuk spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...