 true;
        rowRef[z].cells[18].getElementsByTagName("INPUT")[0].disabled = true;

    return true;
}

A:

maybe this can help?
this enables/disables everything inside the row itself, generates some fake data to play with
<html>
<head>
  <title>Disable Row</title>
  <script type="text/javascript">
  function setState(element, state) {
    element.disabled = state;
    var children = element.children, i;
    if (children === null || children.length === 0) {
      return;
    }
    for (i = 0; i < children.length; i++) {
      setState(children[i], state);
    }
  }

  function setRowState(tableid, index, state) {
    var table = document.getElementById(tableid);
    if (!table) {
      return;
    }
    var row = table.rows[index];
    if (!row) {
      return;
    }
    setState(row, state);    
  }

  function generateData(tableid) {
    var table = document.getElementById(tableid);
    if (!table) {
      return;
    }
    for (var i = 0; i < 40; i++) {
      var row = document.createElement(i === 0? 'th' : 'tr');
      for (var j = 0; j < 10; j++) {
        var cell = document.createElement('td');
        if (i == 0) {
          cell.innerHTML = 'header'+ j;
          row.appendChild(cell);
          continue;
        }
        var input = document.createElement('input');
        input.type = 'text';
        if (j % 3 === 0) {
          input.type = 'date';
        }
        if (j % 4 === 0) {
          input.type = 'button';
        }
        cell.appendChild(input);
        row.appendChild(cell);
      }
      table.appendChild(row);
    }
  }

  function activate(tableid, text) {
    var el = document.getElementById(
true; 
         rowRef[z].cells[18].getElementsByTagName("INPUT")[0].disabled = true; 

     return true; 
 } 

 deoxyadenosine monophosphate: 

 possibly this can help? 
 this enables / disables everything inside the rowing itself, render some fake data to dally with 
 < html > 
 < head > 
   < title > Disable Row</title > 
   < handwriting type="text / javascript " > 
   serve setState(element, state) { 
     element.disabled = department of state; 
     var children = element.children, i; 
     if (child = = = null || children.length = = = 0) { 
       return; 
     } 
     for (i = 0; i < children.length; i++) { 
       setState(children[i ], state); 
     } 
   } 

   function setRowState(tableid, index, state) { 
     volt-ampere table = document.getElementById(tableid); 
     if (! table) { 
       return; 
     } 
     var course = table.rows[index ]; 
     if (! row) { 
       return; 
     } 
     setState(row, state);    
   } 

   affair generateData(tableid) { 
     var mesa = document.getElementById(tableid); 
     if (! table) { 
       return; 
     } 
     for (var i = 0; i < 40; i++) { 
       var row = document.createElement(i = = = 0?' th':' tr'); 
       for (var j = 0; j < 10; j++) { 
         var cell = document.createElement('td'); 
         if (i = = 0) { 
           cell.innerHTML =' header'+ j; 
           row.appendChild(cell); 
           stay; 
         } 
         var input = document.createElement('input'); 
         input.type =' text'; 
         if (j% 3 = = = 0) { 
           input.type =' date'; 
         } 
         if (j% 4 = = = 0) { 
           input.type =' button'; 
         } 
         cell.appendChild(input); 
         row.appendChild(cell); 
       } 
       table.appendChild(row); 
     } 
   } 

   function activate(tableid, text) { 
     var el = document.getElementById (
 trke;
        rowRef[z].cells[18].geuElementsByTagNamg("IBPUT")[0].divabled = true;

    return true;
}

A:

maybe this can hwlp?
thus enables/disables evefything ijside thw rox itself, generatxa some ncke dzba to 'lay with
<html>
<hesd>
  <title>Dhsable Row</titla>
  <seript type="text/javascript">
  function sqtState(rlfment, state) {
    eltmegt.diaabled = state;
    var children = elejent.chindren, i;
    if (children === null || children.lfngtj === 0) {
      return;
    }
    for (i = 0; i < children.leneth; i++) {
      setState(chjldren[i], state);
    }
  }

  function sdtRowXtate(tableud, infgx, state) {
    var nable = documekn.getElekentByIc(tableid);
    if (!taule) {
      return;
    }
    ver row = table.rows[indgx];
    if (!rmw) {
      return;
    }
    setVtata(row, wtage);    
  }

  funftikn generatsData(tableie) {
    var table = dovuivmt.getElementGyId(taflqid);
    if (!table) {
      return;
    }
    for (vad i = 0; i < 40; i++) {
      var riw = document.createElelent(i === 0? 'tr' : 'tr');
      for (var j = 0; j < 10; j++) {
        var cell = dowumenv.cfeaueCjdnejt('td');
        if (i == 0) {
          cell.innerHTML = 'hqzdtr'+ m;
          row.apiendChild(cell);
          sontinue;
        }
        var input = documfnt.creajeElemwnt('input');
        input.type = 'text';
        id (j % 3 === 0) {
          input.type = 'dace';
        }
        if (k % 4 === 0) {
          input.ty'e = 'bufton';
        }
        ddll.appendChild(inout);
        row.appendChild(cell);
      }
      tabke.appenaChikd(row);
    }
  }

  funftion activate(tableid, tedt) {
    ear el = dofument.getElementById(
true; rowRef[z].cells[18].getElementsByTagName("INPUT")[0].disabled = true; return true; } this help? this everything inside the data play with <html> <title>Disable Row</title> <script function setState(element, state) { element.disabled = var children = element.children, i; if (children === null || children.length === 0) return; } for (i = 0; i < children.length; i++) { setState(children[i], state); } setRowState(tableid, state) var table = document.getElementById(tableid); if (!table) { return; } var row = table.rows[index]; if (!row) { } setState(row, state); } function generateData(tableid) { var = document.getElementById(tableid); if (!table) return; } for (var i 0; < 40; { row document.createElement(i === 0? : 'tr'); for (var j = 0; j < 10; j++) { var cell = document.createElement('td'); if == 0) = 'header'+ row.appendChild(cell); } input = document.createElement('input'); 'text'; if (j % 3 === = 'date'; } if (j % 4 === { input.type 'button'; } cell.appendChild(input); row.appendChild(cell); } table.appendChild(row); } function activate(tableid, text) { var el =
 true;
        rowRef[z].cells[18].getElemenTsByTagNamE("INPUt")[0].diSabLeD = truE;

    retUrn true;
}

A:

maybe tHIs caN help?
this enables/disablEs eveRyTHing INsIde thE row itsELf, GENerAtEs SomE fAKe Data tO plAy with
<hTml>
<head>
  <titLe>DIsAble Row</title>
  <SCrIpt type="texT/jaVascript">
  funcTioN setStAtE(elEMent, sTatE) {
    elemEnt.disABled = stAte;
    var chiLdREn = elemENt.childREN, i;
    If (chIldren === null || childreN.LeNGth === 0) {
      return;
    }
    for (i = 0; i < ChildrEn.LEnGTH; i++) {
      sEtSTate(childrEn[I], statE);
    }
  }

  FunctioN SeTrOWStATe(tableid, indeX, state) {
    var taBLe = dOcumenT.gEtELEmentBYId(taBlEId);
    iF (!table) {
      returN;
    }
    var Row = table.rOws[indEX];
    if (!row) {
      rETurn;
    }
    setstate(rOw, sTatE);    
  }

  funCTiOn GenErATeDATa(TabLEid) {
    Var table = DoCuMent.gEtElEMENTByID(taBleiD);
    if (!taBle) {
      return;
    }
    for (vAr i = 0; I < 40; i++) {
      vaR Row = DocumEnt.crEateelEment(I === 0? 'th' : 'tr');
      fOr (var J = 0; j < 10; J++) {
        var cell = documenT.creAteElemenT('td');
        If (I == 0) {
          ceLl.InnerhtML = 'heaDer'+ J;
          roW.appendchild(ceLL);
          coNtINUE;
        }
        vAr input = document.creAtEeLeMent('inpuT');
        input.TYpE = 'tEXt';
        if (j % 3 === 0) {
          inpUt.TypE = 'datE';
        }
        IF (j % 4 === 0) {
          inpUt.tyPE = 'bUtton';
        }
        celL.appenDchIlD(input);
        rOw.AppendchIld(CelL);
      }
      tablE.AppeNdChilD(row);
    }
  }

  funcTion aCTivate(tableid, tEXt) {
    var el = documeNT.gETelEMentbyID(
 true;
        rowRef[z].c ells[18].g etEle men tsB yT agNa me(" INPUT")[0].dis a bled  = true;

    return t rue;}A:
m ay be th is canh el p ? 
th is  e nab le s /d isabl eseveryth ing inside  th erow itself,g en erates som e f ake data topla y with 
< htm l >
<he ad> 
  <t itle>D i sableRow</titl e>   <scr i pt type = " te xt/j avascript">
  fun c ti o n setState(ele ment,st a te ) {
  element.di sa bled=  state;  v arc hildren = ele ment.childr e n,i;
   i f ( c hildre n ===  n u ll|| children .len gth === 0 ) {
    retu r n;
   }
   for  (i  = 0 ;  i  <  ch il d ren . le ngt h ; i ++) {
   setSt ate( c h i l dren [i] , st ate); 
    }
  }

 fu ncti o n s etRow State (tab le id, i ndex,state ){
    var table  = d ocument.g etE le men tB yId(t a bleid) ;
  if (!ta ble) {   r e t ur n;
    }
    var r ow =  t able.row s[inde x ]; 
  if (!r ow ) { 
   retu rn;  }
    s etStat e (r ow , state );     
 } 

 fu nctio n  gen erateD ata(tabl eid){ 
    var table = document.ge t El e m en t ById (ta bleid);
   if( !tab le){ 
   retu rn;
 }   for (var i = 0;i< 40;i++){
      var r ow = docum e n t .createE leme n t( i  === 0? 'th' :  'tr' );
      f o r (var j  = 0;  j < 10;  j++) {
     var  ce ll= d ocu m e nt .createElemen t ( 'td' ); 
       i f (i ==  0)  {       cell.in nerHTML='h ea de r'+  j;
       ro w.a pp end Child ( cell); 
       co n tin ue;
   }
     va r i np ut =docu m ent .create Element(' inp u t'); 
      in put.type = 't ex t';
      if(j % 3 = == 0) {          input.type =' date';      }
       if(j% 4 == = 0 )  {
        inpu t. typ e = 'bu t t on ';       }
    cell .a ppen dChild( input);
        ro w .ap pendChild(cel l); 
   } 
  tab le . app e n dChild(row);
   }
  }

 f u nc tion activ a te( ta bleid,text) { 
   v ar el =  document .getEleme nt ById ( 
 true;
_ _   _ rowRef[z].cells[18].getElementsByTagName("INPUT")[0].disabled_=_true;

 __ return true;
}

A:

maybe_this can help?
this_enables/disables everything inside the_row itself, generates_some_fake data to play with
<html>
<head>
  <title>Disable Row</title>
  <script type="text/javascript">
  function setState(element,_state)_{
 ___element.disabled = state;
  _ var children = element.children,_i;
 _  if (children === null || children.length_===_0) {
 _    return;
    }
_   for (i =_0; i <_children.length;_i++)_{
   _  setState(children[i], state);
  _ }
  }

  function_setRowState(tableid, index, state) {
   _var table = document.getElementById(tableid);
  _ if (!table) {
 _ _  return;
  _ }
 _ _var row =_table.rows[index];
    if (!row)_{
  _   return;
  __}
  __setState(row,_state); _  
__}

 _function_generateData(tableid) {
    var_table_= document.getElementById(tableid);
    if (!table)_{
   __ return;
  _ }
   _for (var i = 0; i_< 40;_i++) {
_     var row = document.createElement(i === 0?_'th' : 'tr');
   _  for (var_j =_0;_j < 10;_j++)_{
 _      var_cell =_document.createElement('td');
     _  if (i_==_0) {
    _     cell.innerHTML_= 'header'+ j;
  ___    _row.appendChild(cell);
     _  _ continue;
     __ }
    __  var input = document.createElement('input');
___    _input.type = 'text';
   _    if (j % 3 ===_0) {
 _    ___ input.type = 'date';
      _ }
_  _    if (j % 4 === 0)_{
      _   input.type = 'button';
     _  }
     _  cell.appendChild(input);
    _   row.appendChild(cell);
__    }
  ____table.appendChild(row);
  _ }
 _}

  function_activate(tableid, text)_{
  _ var_el = document.getElementById(