troubleshooting Question

how can i send two parameters in a script?

Avatar of fedkris
fedkris asked on
ExchangeJavaScript
8 Comments1 Solution130 ViewsLast Modified:
we have a form, (see file attached), when i select a box, the radio button "yes" should be selected by script

<SCRIPT>
function GETONcheck(i)
{
document.getElementById(i).checked = true;

}
</SCRIPT>


 	<INPUT id=radio8 type=radio name=q17 value="1" <% if fq17 = "1" then response.write "checked" end if  %> >
  				<%=q20%>&nbsp;</td>
			   	<td>
				</td>
		   	</tr>
			 <tr>
			   	<td style="height: 21px">
			   	<INPUT id=radio9 type=radio name=q17 value="2" <% if fq17 = "2" then response.write "checked" end if  %>>
			   	<%=q21 %>&nbsp;</td>
			   	<td style="height: 21px"></td>
	   		 </tr>

	   		 
	   		 
		   	
			   		 
			   		 
			   		 
					 <tr>
					
			   	<td>
			   	<table cellpadding="0" cellspacing="0" style="width: 100%">
					<tr>
						<td width="25px">&nbsp;</td>
						<td><INPUT id=q18 type=checkbox name=q18 onchange="GETONcheck('q17')"  <%if request.querystring("fq18") = "on" then response.write "checked" end if  %>>&nbsp;<%=q30 %></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td><INPUT id=q19 type=checkbox name=q19 onchange="GETONcheck('q17')" <%if request.querystring("fq19") = "on" then response.write "checked" end if  %>>&nbsp;<%=q31 %></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td><INPUT id=q20 type=checkbox name=q20 onchange="GETONcheck('q17')" <%if request.querystring("fq20") = "on" then response.write "checked" end if  %>>&nbsp;<%=q32 %></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
				</table>



so, if i check box 18, 19 or 20, radiobutton 17 has to be checked, with value 2 (in this case, true).

you know how to do that?
B--script.png
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros