/    Sign up×
Community /Pin to ProfileBookmark

Dynamic Radiobox Question – how to reveal more options on click?

Hi,

I am working on the survey located at: [url]http://www.altassets.com/surveysmade/peallocation2009survey.php[/url]

In the last question (5c) I need to hide the four checkboxes UNLESS someone selects the option “No, in any circumstances”.

The code of the radio box is
<input type=”radio” name=”5c_OnlineExchange” id=”5c_OnlineExchange” value=”No”>

Can you please help me find the script for it? I imaging it will not be too complicated but I am a designer not a developer and useless at javascript…

Thank you…

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisSep 10.2008 — Can you please help me find the script for it?[/quote]Why, did you lose it? ?
&lt;tr&gt;
&lt;td width="50" align="center" valign="middle"&gt;&lt;input type="radio" name="5c_OnlineExchange" id="5c_OnlineExchange" value="No"[color=red] onclick="if(this.checked){document.getElementById('5cmore').style.display='block';}else{document.getElementById('5cmore').style.display='none';}"[/color]&gt;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;No, in any circumstances *&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="center" valign="middle"&gt;&amp;nbsp;&lt;/td&gt;
&lt;td align="left" valign="middle"&gt;&lt;p[color=red] id="5cmore" style="display: none"[/color]&gt;* If you have answered &lt;strong&gt;No, in any circumstances&lt;/strong&gt;, what are the main reasons for not selling on an online exchange? (Please tick all that apply)&lt;/p&gt;
&lt;p&gt;
&lt;input name="Q5c_Reasons_Confidentiality" type="checkbox" id="Q5c_Reasons_Confidentiality" value="Confidentiality"&gt;Concerns of Confidentiality&lt;br&gt;&lt;br&gt;
&lt;input name="Q5c_Reasons_Security" type="checkbox" id="Q5c_Reasons_Security" value="Security"&gt;Concerns of Security &lt;br&gt;&lt;br&gt;
&lt;input name="Q5c_Reasons_BestPrice" type="checkbox" id="Q5c_Reasons_BestPrice" value="Best price"&gt;I do not believe we could get the best price&lt;br&gt;&lt;br&gt;
&lt;input name="Q5c_Reasons_DirectCommunication" type="checkbox" id="Q5c_Reasons_DirectCommunication" value="Direct communication"&gt;I would want to talk with someone&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
Copy linkTweet thisAlerts:
@gayetaauthorSep 10.2008 — thank you gil davis, you are a legend! ? ? ?
×

Success!

Help @gayeta 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

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