Copy link to clipboard
Copied
Hello,
i am newbie in coldfusion...i want to make an option answer after my first check box answer is true
code :
<tr>
<td><table width="100%" border="0">
<tr>
<tr>
<td>Do you have a car? </td>
<td><input name="car_type" type="checkbox" value="1">Yes<input name="car_type" type="checkbox" value="0">No</td>
</tr>
<tr>
<td width="100%"></td>
<td><strong>(Select your car type)</strong></td>
</tr>
<tr>
<td></td>
<td><input name="car_bmw" type="checkbox" value="1">
BMW</td></tr>
<tr><td></td>
<td><input name="car_mercedes" type="checkbox" value="1">
Mercedes</td></tr>
<td></td>
<td><input name="car_toyota" type="checkbox" value="1">
Toyota</td>
<td></td>
<tr><td>
</td><td>Others<input name="car_others" type="text" size="20" maxlength="100" /></td>
</tr>
<tr>
Thank u
Copy link to clipboard
Copied
What have you tried?
This is a client-side interaction, not server-side, so it should be fairly straightforward to do in JavaScript (I'd recommend using jQuery as it will make things a bit easier).
-Carl V.
Copy link to clipboard
Copied
Checked and enabled checkbox: <input name="car_type" type="checkbox" value="1" checked>
Checked and disabled checkbox: <input name="car_type" type="checkbox" value="1" checked disabled>