View Full Version : I check this box, another pops up next to it

01-15-2003, 03:56 PM
I have a form and in one section, they first fill in their name. It then has a checkbox beside the textbox and a question "Is this your first time attending?" (it's for a meeting registration) I would like to have it so if the user checks this box saying they are attending for the first time, a second checkbox appears next to the first one, and a question like "Would you like to receive previous meeting programs?"

Now, the reason I want it like this is because the people filling out this form are, to be blunt, slow. We like to keep things very simple when dealing with them. I don't want to put the extra check box if they don't need to see it (which they don't unless they check the first one).

Is this possible? Can anyone please give me some code to show me how it's done? I would really appreciate it! :thumbsup:

Mr J
01-15-2003, 07:07 PM
Is this any good?

function ischk(){

<form name="f1">
<input type="text" name="t1">
<input type="checkbox" name="c1" onclick="ischk()">
<input type="checkbox" name="c2" style="visibility:hidden">

01-15-2003, 07:58 PM
Cool deal, it works perfectly! Thanks!