siliviasalsa
06-15-2007, 05:56 PM
<!------------
Hello
i have check boxes and corresponding textboxes.
i wish to have my text box show or hide bases on the text box checked.
for example.
if
check box honda is checked then the text box honda shows on the screen.
if it unchecked then it is not shown.
I want this to also be the same for toyota and subaru.
Thanks in advance.
i am completely new in javascript and wish to get a snippets to add to my existing code.
-------------->
<html>
<head>
</head>
<body>
<h1> </h1>
<table>
<cfform action="CarAddAction.cfm" method="POST">
<tr>
<td>Honda:</td>
<td><center><input type="checkbox" name="HONDA_MODEL" value="HONDA" checked></center></td>
</tr>
<tr>
<td>Toyota:</td>
<td><center><input type="checkbox" name="Toyota_MODEL" value="Toyota" Unchecked></center></td>
</tr>
<tr>
<td>SUBARU:</td>
<td><center><input type="checkbox" name="SUBARU_MODEL" value="SUBARU" unchecked></center></td>
</tr>
<tr><td>Honda Model</td>
<td>
<input type="Text"
name="Honda_Model"
Value=""
size="22"
maxlength="20">
</td>
<tr></tr>
<tr><td>Toyota Model</td>
<td>
<input type="Text"
name="Toyota_Model"
Value=""
size="22">
</td>
<tr></tr>
<tr><td>Subaru Model</td>
<td>
<input type="Text"
name="Subaru_Model"
Value=""
size="22">
</td>
<tr></tr>
<td> </td>
<td>
<input type="submit" value="Add make to Database">
</td>
</tr>
</cfform>
</table>
</body>
</html>
Hello
i have check boxes and corresponding textboxes.
i wish to have my text box show or hide bases on the text box checked.
for example.
if
check box honda is checked then the text box honda shows on the screen.
if it unchecked then it is not shown.
I want this to also be the same for toyota and subaru.
Thanks in advance.
i am completely new in javascript and wish to get a snippets to add to my existing code.
-------------->
<html>
<head>
</head>
<body>
<h1> </h1>
<table>
<cfform action="CarAddAction.cfm" method="POST">
<tr>
<td>Honda:</td>
<td><center><input type="checkbox" name="HONDA_MODEL" value="HONDA" checked></center></td>
</tr>
<tr>
<td>Toyota:</td>
<td><center><input type="checkbox" name="Toyota_MODEL" value="Toyota" Unchecked></center></td>
</tr>
<tr>
<td>SUBARU:</td>
<td><center><input type="checkbox" name="SUBARU_MODEL" value="SUBARU" unchecked></center></td>
</tr>
<tr><td>Honda Model</td>
<td>
<input type="Text"
name="Honda_Model"
Value=""
size="22"
maxlength="20">
</td>
<tr></tr>
<tr><td>Toyota Model</td>
<td>
<input type="Text"
name="Toyota_Model"
Value=""
size="22">
</td>
<tr></tr>
<tr><td>Subaru Model</td>
<td>
<input type="Text"
name="Subaru_Model"
Value=""
size="22">
</td>
<tr></tr>
<td> </td>
<td>
<input type="submit" value="Add make to Database">
</td>
</tr>
</cfform>
</table>
</body>
</html>