function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lakshmi25lakshmi25 

please correct it

  i have 2 checkbox fields  if i check one of the checkbox in first field checkbox want to disable  another  field checkbox  checkbox

<script type="text/javascript">
   
   function disable()
   {
   for (i=0; i<document.form.pb.ch1.length; i++){
if (document.form.pb.ch1[i].checked =true)
{
  document.form.pb.ch3[i].disabled='true';
}
  }
   
   }
   </script>

ManjunathManjunath

Hi!!

 

In the "if", the comparison is not correct . Try this.

 

"if (document.form.pb.ch1[i].checked == true)"

 

Regards,

Manjunath

 

 

Ashok Kumar MAshok Kumar M

hiii

 

"if (document.form.pb.ch1[i].checked == true)"

 

use this one..............

 

Thanks

Ashok Kumar.M