<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [Javascript] problem of only one radio button</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>It is hard to analyze without code.&nbsp; But off hand it may be that you are assigning different NAME/ID to each radio button. Try assigning the same NAME/ID to each radio button and generate the VALUE for each button.</FONT></P>

<P><FONT SIZE=2>Bob Filipiak (Contractor)</FONT>
<BR><FONT SIZE=2>MCP </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Abraham Liu [<A HREF="mailto:liuabe99@hotmail.com">mailto:liuabe99@hotmail.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Friday, July 20, 2001 9:39 AM</FONT>
<BR><FONT SIZE=2>To: Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>Subject: [Javascript] problem of only one radio button</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hi,</FONT>
<BR><FONT SIZE=2>In my jsp program, I select a number of rows from database table, then </FONT>
<BR><FONT SIZE=2>display them in form table. Each row attachs a radio button, So users can </FONT>
<BR><FONT SIZE=2>select one of rows and do further process.</FONT>
<BR><FONT SIZE=2>The reason I use radio button is that I concatenate 3 table columns and </FONT>
<BR><FONT SIZE=2>store them in &quot;value&quot; property of button. When user click button, I use </FONT>
<BR><FONT SIZE=2>javascript &quot;split&quot; function to get these 3 columns back. Everything seemed </FONT>
<BR><FONT SIZE=2>working just fine. But I realized that if only one row got selected which </FONT>
<BR><FONT SIZE=2>meaned only one button exists also, then the fuction of radio button didn't </FONT>
<BR><FONT SIZE=2>worked and &quot;split&quot; won't work either. I switched to checkbox, I got the same </FONT>
<BR><FONT SIZE=2>result.</FONT>
</P>

<P><FONT SIZE=2>Is it true that radio button and checkbox will function correctly only at </FONT>
<BR><FONT SIZE=2>least two of them exist in form ?</FONT>
<BR><FONT SIZE=2>In my case, the number of radio button are genarated dynamically depending </FONT>
<BR><FONT SIZE=2>on the number rows being selected. So what can I do ? Do I have some other </FONT>
<BR><FONT SIZE=2>alternative ways ?</FONT>
<BR><FONT SIZE=2>I will be appreciated some kindly help.</FONT>
<BR><FONT SIZE=2>Thank you.</FONT>
<BR><FONT SIZE=2>Abe Liu</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>_________________________________________________________________</FONT>
<BR><FONT SIZE=2>Get your FREE download of MSN Explorer at <A HREF="http://explorer.msn.com/intl.asp" TARGET="_blank">http://explorer.msn.com/intl.asp</A></FONT>
</P>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Javascript mailing list</FONT>
<BR><FONT SIZE=2>Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2><A HREF="http://www.LaTech.edu/mailman/listinfo/javascript" TARGET="_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
</P>

</BODY>
</HTML>