how to disable multiple checkboxes when i select radio button?
<pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%&gt;
    &lt;%@ page isELIgnored="false" %&gt;
&lt;%@ page import="java.util.*"%&gt;

&lt;%@page import="com.ba.RetrieveDetails"%&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;script type="text/javascript"&gt;
history.forward();
function validate(logFile){

    var count=0;

    for (var i=0; i&lt;logFile.length; i++) {
        if (logFile[i].checked) {

            count++;
        }

    }

    if (count &lt; 1) 
    {
    alert("please select Log Fille(s)");
    return false;
    }

    }

&lt;/script&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
&lt;title&gt;Log Files&lt;/title&gt;


&lt;/head&gt;
&lt;body&gt;
&lt;form name="LogFiles" action="RetrieveLogFiles" method="get" onsubmit=""&gt;
&lt;%
HashMap hs=new HashMap();
hs=(HashMap)session.getAttribute("key");

session.getAttribute("key");

String hosts[]=(String[])session.getAttribute("hosts");
%&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img src="BA_Logo1.bmp" align="right" alt="British Airways"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;%
if(hs.size()== 0)
{%&gt;
    &lt;td&gt;&lt;h3&gt;Authentication fail OR Does not have access to UnixBox.Click &lt;a href="Login.jsp"&gt;Here&lt;/a&gt; to Login&lt;/h3&gt;&lt;/td&gt;
&lt;%
}
else
{
for(int i=0;i&lt;hosts.length;i++)
{
    %&gt;

    &lt;h3&gt;&lt;p&gt;&lt;%out.println(hosts[i]+"\n");%&gt;&lt;/p&gt;&lt;/h3&gt;

    &lt;%


    ArrayList al=new ArrayList();
    al=(ArrayList)hs.get(hosts[i]);
    int flag=al.size();


    %&gt;
    &lt;td&gt;
    &lt;table border="2" cellpadding="4"&gt;  

    &lt;%
    if(flag==0)
    {%&gt;

    &lt;td&gt;
    &lt;h3&gt;&lt;p style="color:#FF0000"&gt;No Log Files to display&lt;/p&gt;&lt;/h3&gt;
    &lt;/td&gt;


    &lt;%

    }else{
    for(int j=0;j&lt;al.size();j++)
    {



        String lines[]=al.get(j).toString().split("\\r?\\n");



        for(int len=0;len&lt;lines.length;len++)
        {

            %&gt;

        &lt;tr&gt;
        &lt;td&gt;&lt;%out.println(lines[len]);%&gt;&lt;/td&gt;

    &lt;td&gt;&lt;input type="checkbox" name="logFile" id="logFile" value="&lt;%=hosts[i]+"$"+lines[len]%&gt;"&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type="radio" name="logFileView" id="logFileView" value="&lt;%=hosts[i]+"$"+lines[len]%&gt;"&gt;&lt;/td&gt;
    &lt;/tr&gt;


        &lt;%
        }%&gt;

        &lt;/table&gt;
        &lt;/td&gt;
        &lt;/tr&gt;
        &lt;/table&gt;
&lt;%  }

}   

    }%&gt;
&lt;input type="submit" name="Get Logs" align="middle" value="Get Logs" onclick="return validate(logFile)" &gt;
&lt;%
}

%&gt;


&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Here when i press any radio button in logFileView.it has to disable all check boxes which are logFile? vice versa also needed. please help on this </p>

<p>logFileView is radio button and logFile is checkbox.Here multiple checkboxes and multiple radiobuttons iam using.</p>
