/    Sign up×
Community /Pin to ProfileBookmark

Can you make a hidden form element unhidden

Hi. Trying to figure out if there is a way to make a hidden HTML form element unhidden as the result of an action (using jscript, etc.). Specifically if a user clicks on a checkbox, I’d like for a series of hidden text boxes to appear on the form. In my case a user has an option to select whether to receive a product brochure, and if they do select this brochure then there are customizations they can request.

I’d appreciate any ideas, thank you.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@dvaughanauthorMar 14.2003 — Thank you Dave. Worked like a charm ?
Copy linkTweet thisAlerts:
@saintgregorSep 03.2003 — could you please make the solution public.

i'm struggling with the same problem.

thanks a lot!

saint
×

Success!

Help @dvaughan 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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