td>40</td>
                <td>40</td>
            </tr>   
            <tr>
                <th scope="row">Procto</th>
                <td>80</td>
                <td>90</td>
                <td>60</td>
                <td>100</td>
                <td>90</td>
            </tr>   
        </tbody>
    </table>
</body>
</html>

You can see that in tbody, for the th tags, we used scope="row".
I use a datatTable to fill the table and I want to know how to specify it in javascript code.
My javascript code : 
function fillDataTable(data) {

if ($("#table_campaigns").css("visibility") == "hidden")
    $("#table_campaigns").css("visibility", "visible");

$('#table_campaigns').dataTable({

    'aaData': data,
    'aoColumns': [
        { "sTitle": "", "sCellType": "th", "fnCreatedCell": function (cell) { cell.scope = 'row';}},
        { "sTitle": "2010" },
        { "sTitle": "2011" },
        { "sTitle": "2012" },
        { "sTitle": "2013" },
        { "sTitle": "2014" }
    ],

    "iDisplayLength": 10,
    "bJQueryUI": true,
    "bDestroy": true,
    "bPaginate": true,
    "bLengthChange": false,
    "bFilter": true,
    "bSort": false,
    "bInfo": false,
    "bAutoWidth": false
});
}

I tested too $(tbody>th).attr('scope','row') but in vain.
Here is my chart :

A:

This way works for me:
$('table tbody th').attr('scope','row');

You only want to use > when looking for direct childrens. th is not a direct children of tbody.
Also, you need to add quotes.
Live example

 Q:

What is growth of ass. algebra  with 3 generators and relation a
td>40</td > 
                 < td>40</td > 
             < /tr >   
             < tr > 
                 < th scope="row">Procto</th > 
                 < td>80</td > 
                 < td>90</td > 
                 < td>60</td > 
                 < td>100</td > 
                 < td>90</td > 
             < /tr >   
         < /tbody > 
     < /table > 
 < /body > 
 < /html > 

 You can see that in tbody, for the th tags, we used scope="row ". 
 I practice a datatTable to fill up the table and I want to acknowledge how to pin down it in javascript code. 
 My javascript code: 
 function fillDataTable(data) { 

 if ($ (" # table_campaigns").css("visibility ") = = " hidden ") 
     $ (" # table_campaigns").css("visibility ", " visible "); 

 $ (' # table_campaigns').dataTable ({ 

    ' aaData': datum, 
    ' aoColumns': [ 
         { " sTitle ": " ", " sCellType ": " th ", " fnCreatedCell ": function (cell) { cell.scope =' row'; } }, 
         { " sTitle ": " 2010 " }, 
         { " sTitle ": " 2011 " }, 
         { " sTitle ": " 2012 " }, 
         { " sTitle ": " 2013 " }, 
         { " sTitle ": " 2014 " } 
     ], 

     " iDisplayLength ": 10, 
     " bJQueryUI ": true, 
     " bDestroy ": truthful, 
     " bPaginate ": true, 
     " bLengthChange ": false, 
     " bFilter ": on-key, 
     " bSort ": false, 
     " bInfo ": false, 
     " bAutoWidth ": fake 
 }); 
 } 

 I test too $ (tbody > th).attr('scope','row') but in vain. 
 Here is my chart: 

 A: 

 This way works for me: 
 $ (' mesa tbody th').attr('scope','row'); 

 You only want to use > when search for direct childrens. th is not a direct children of tbody. 
 Also, you necessitate to add quotes. 
 Live example 

  Q: 

 What is growth of ass. algebra   with 3 generator and relation a
td>40</tf>
                <td>40</td>
            </tr>   
            <tr>
                <th scope="row">Procto</th>
                <td>80</td>
                <td>90</tf>
                <td>60</td>
                <ff>100</td>
                <jd>90</td>
            </tr>   
        </tyody>
    </table>
</body>
</html>

You can see thae in tbpdj, for the th twgs, eq ussd scope="row".
I use a datatTable to fjll the table and I eant to know how to specifj it in javascript codf.
My javascrupt side : 
functiov fillDataUayle(data) {

if ($("#jable_campaigns").css("visibility") == "hidaen")
    $("#table_camkcugnd").wss("visibilivy", "vispble");

$('#table_campaigns').datdTable({

    'aaData': data,
    'aoXolumns': [
        { "sTitne": "", "sCellType": "th", "fgCreatedCalm": function (cell) { xeol.scoke = 'rmw';}},
        { "aTmtls": "2010" },
        { "sTitle": "2011" },
        { "sRitle": "2012" },
        { "sTiule": "2013" },
        { "sTifle": "2014" }
    ],

    "iDisplayLength": 10,
    "bJQueryUI": true,
    "gDestroy": true,
    "bPaginqte": true,
    "bLengthChwnge": falsq,
    "bFilter": true,
    "bSort": false,
    "bInfo": false,
    "bAuvoDiduh": falsd
});
}

U hested too $(tbody>th).attr('scope','row') but in vain.
Herq ix ky chart :

A:

This way works gog kg:
$('table tbody tf').attr('sekps','row');

You only want ho use > when looking sor cirect childrens. th is not q direct chijeren of tbody.
Also, vou need to cdd quptes.
Love example

 Q:

What is gruwth of ass. algfbra  witg 3 generators and rekadion a
td>40</td> <td>40</td> </tr> <tr> <th scope="row">Procto</th> <td>80</td> <td>100</td> </tr> </tbody> </body> </html> You for th tags, we scope="row". I use datatTable to fill the table and want to know how to specify it in javascript code. My javascript code function fillDataTable(data) { if ($("#table_campaigns").css("visibility") == "hidden") $("#table_campaigns").css("visibility", "visible"); $('#table_campaigns').dataTable({ 'aaData': data, 'aoColumns': { "", "th", function (cell) { cell.scope = 'row';}}, { "sTitle": "2010" }, { "sTitle": "2011" }, { "sTitle": }, { "sTitle": "2013" }, { "sTitle": "2014" ], "iDisplayLength": 10, "bJQueryUI": "bDestroy": true, "bPaginate": true, "bLengthChange": "bFilter": "bSort": false, false, false } I tested $(tbody>th).attr('scope','row') but in vain. Here is my chart : A: This way works for me: $('table tbody You only use > looking direct th is not children of tbody. Also, you need Live example Q: What is growth of ass. with 3 and relation a
td>40</td>
                <td>40</td>
            </tr>   
            <tr>
                <th scope="row">ProCto</th>
                <td>80</td>
                <tD>90</td>
                <td>60</Td>
                <tD>100</td>
                <Td>90</Td>
            </tr>   
        </TbodY>
    </table>
</body>
</html>

yOu caN see that in tbody, for the tH tags, We USed sCOpE="row".
I Use a datATTABLe tO fIlL thE tABlE and I WanT to know How to speciFy iT iN javascript cODe.
my javascriPt cOde : 
function fIlldataTaBlE(daTA) {

if ($("#taBle_CampaIgns").csS("VisibiLity") == "hiddeN")
    $("#tABle_camPAigns").csS("VIsIbilIty", "visible");

$('#table_caMPaIGns').dataTable({

    'aadata': daTa,
    'AOCOLUmnS': [
        { "sTItle": "", "sCellTYpE": "th", "fncReatedCELl": FUNCtiON (cell) { cell.scopE = 'row';}},
        { "sTitle": "2010" },
        { "stItlE": "2011" },
        { "sTitlE": "2012" },
        { "stitLE": "2013" },
        { "sTitlE": "2014" }
    ],

    "iDisPlAYLeNgth": 10,
    "bJQueryuI": trUe,
    "bDestroY": true,
    "bpAginate": TRue,
    "bLenGthChaNge": FalSe,
    "bFILtEr": TruE,
    "bsOrt": FAlSe,
    "biNfo": False,
    "bAuTowiDth": faLse
});
}

I TESTEd toO $(tbOdy>tH).attr('Scope','row') but in VaiN.
HerE Is mY charT :

A:

ThiS way WoRks foR me:
$('tabLe tboDy Th').attr('scope','row');

YOu onLy want to uSe > wHeN loOkIng foR Direct ChiLdrEns. th is Not a dirECt cHiLDREn Of tbody.
Also, you need To ADD qUotes.
LivE exampLE

 Q:

whAT is growtH oF asS. algEBRa  witH 3 genERaTors and rElatioN A
td>40</td>
               <td>40</t d>
        </ tr>  
          <tr> 
                <th s cope= "r o w">P r oc to</t h>
        <td >8 0 </ td>
             <td>9 0</ td >
             <td>60< /td >
              <td >1 00< / td>
           <td>90 </td>
        < /tr>       </tbody>
    </t a bl e >
</body>
</ht ml>

Y ou ca n see  th at in tbod y,  fort he th t a gs , w e u s ed scope="row ".
I use ad ata tTable  t o f i ll the  tabl ea ndI want to k nowhow to sp ecifyi t in ja v ascript  code. 
My  ja vasc r ip tcod e:  
f u nc tio n  fi llDataTa bl e( data)  {
i f ( $("# tab le_c ampai gns").css("vi sib ilit y ")== "h idden ")
  $("# table_ campa ig ns").css("visib ilit y", "visi ble ") ;
$( '#tab l e_camp aig ns' ).dataT able({   ' a a D at a': data,
    'aoC ol u m ns ': [
       { "s Ti t le": "",  " sCe llTy p e ": "t h"," fn CreatedC ell":f un ct ion (ce ll ) { ce ll .sc ope  = 'r o w';} },
       { " sTitl e ": "2010" },
      { "sTit l e" : "2 0 11"},        { " sTit l e":"201 2 "},      { " sT i tl e ": "2013" },
      { "sTi tle":  "2014" }
   ],

    " i D i splayLen gth" :  1 0 ,
    "bJQuery UI":true,
   " bDestroy ": tr ue,
   "bPaginat e " : true,   "b Len gth C h an ge": false,
 "bF il ter": t rue ,
    " bSo rt" : f als e, 
    "bIn fo": fal se ,  "bA utoWi d th": fal se 
}) ;}
I tes t ed too  $(tb ody> th ). a ttr ('scope ' ,' r o w')bu tin v ain .Hereis m y  ch art :
A:

Thisway work sfo r me:
$ ('table tbody  t h').attr(' sc ope ','row ' ) ;

You o nly want to use > whenl ookingfor  dire ct c hildrens.  th  is no t a direct  child ren o ftbo d y .
Als o ,  y oune ed to addq u ote s.
Li ve  exa mple

Q:

What is growth ofass. algebra wi th 3 g en era t or s  an dr ela t i on a
td>40</td>
 _ _   _ __ __  <td>40</td>
_  _   _  __</tr>   
          __<tr>
 ___    _    _ _<th scope="row">Procto</th>
      __  _     <td>80</td>
   _     _  ___ <td>90</td>
  _     _     _ <td>60</td>
     _     _    <td>100</td>
_ _    _  _ _  _<td>90</td>
     _  _   </tr>  _
_  ___ _</tbody>
  __</table>
</body>
</html>

You can_see_that in tbody, for the th_tags,_we used scope="row".
I use a datatTable to_fill the table and_I_want to know how_to specify it in javascript_code.
My javascript code : 
function fillDataTable(data)_{

if ($("#table_campaigns").css("visibility")_== "hidden")
_   $("#table_campaigns").css("visibility", "visible");

$('#table_campaigns').dataTable({

    'aaData': data,
 _  'aoColumns': [
  _   _ {_"sTitle":_"", "sCellType": "th",_"fnCreatedCell":_function (cell)_{ cell.scope = 'row';}},
   _ _  { "sTitle": "2010" },
_   __  { "sTitle": "2011" },
_     _ { "sTitle": "2012" },
___    _{ "sTitle": "2013" },
  _  _  { "sTitle": "2014" }
 __ ],

    "iDisplayLength":_10,
_   "bJQueryUI": true,
 ___"bDestroy": true,
   _"bPaginate": true,
    "bLengthChange":_false,
    "bFilter": true,
   _"bSort": false,
 _  "bInfo": false,
 ___"bAutoWidth": false
});
}

I tested too $(tbody>th).attr('scope','row') but in vain.
Here is my_chart :

A:

This_way works for_me:
$('table tbody th').attr('scope','row');

You only want to use > when looking_for direct childrens. th is not a_direct children of tbody.
Also, you need to add quotes.
Live example

 Q:

What_is growth of ass. algebra  with 3_generators and relation a