jQuery.after() method inserting a row that is stuffing itself into one cell. Why?

I'm trying to add cells to the right side of this table with jQuery, under the active row when clicked.  I got it down to inserting a row,  which is functioning on click, and toggled with the help of CSS.  
For some reason,  the.after() method that is injecting HTML below the active row,  appears to be stuffing all the HTML into the first cell,  instead of injecting it into the table and functioning like a normal row.  I'm not exactly sure why.  I think it may be something to do with my CSS and the solution I fashioned for toggling the row's display, but I may be wrong.  Changing the CSS display mode doesn't fix this. 

Any help would be super appreciated!
CSS:
     .metadata {
                display: none;
            }

       .metadata.active {
                display: block;
            }
        table {
            font-family: arial, sans-serif;
            border-collapse: collapse;
            width: 100%;
            margin-right:20px;
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        }

        td, th {
            border-bottom: 1px solid #ccc;
            border-right: 1px solid #ccc;
            text-align: left;
            padding: 8px;
            font-weight: normal;
        }

        th {
            text-decoration: none;
            font-size: 15px;

        }
        tr:nth-child(even) {
            background-color: #F5F5F5;
        }

   .content:hover {
        background-color: #99d1db;

cursor: pointer;
}

HTML:
    <div class="table" style="text-align:center;">

        <table>
        <tbody>
        <tr>
            <th></th>
            <th >blah</th>
            <th>blah</th>
            <th>blah</th>
            <
jQuery.after () method inserting a row that is stuffing itself into one cellular telephone. Why? 

 I'm try to add cell to the correct side of this table with jQuery, under the active quarrel when clicked.   I got it down to insert a row,   which is functioning on click, and toggle with the help of CSS.  
 For some rationality,   the.after () method that is injecting HTML below the active row,   appears to be stuff all the HTML into the first cell,   rather of injecting it into the table and functioning like a normal row.   I'm not precisely sure why.   I think it may be something to do with my CSS and the solution I fashioned for toggle the row's display, but I may be wrong.   Changing the CSS display mode doesn't fix this. 

 Any help would be super appreciated! 
 CSS: 
      .metadata { 
                 display: none; 
             } 

        .metadata.active { 
                 display: block; 
             } 
         table { 
             font - family: arial, sans - serif; 
             border - collapse: collapse; 
             width: 100% ; 
             margin - right:20px; 
             box - shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 
         } 

         td, th { 
             boundary line - bottom: 1px solid # ccc; 
             molding - right field: 1px upstanding # ccc; 
             text - align: left; 
             padding: 8px; 
             font - weight: normal; 
         } 

         th { 
             text - decoration: none; 
             font - size: 15px; 

         } 
         tr: nth - child(even) { 
             background - color: # F5F5F5; 
         } 

    .content: hover { 
         background - semblance: # 99d1db; 

 cursor: pointer; 
 } 

 HTML: 
     < div class="table " style="text - align: center; " > 

         < table > 
         < tbody > 
         < tr > 
             < th></th > 
             < th > blah</th > 
             < th > blah</th > 
             < th > blah</th > 
             <
jQufry.after() method insertinn a row that is stuffinj itselr into ove cell. Why?

I'm trying to add rellw to uke right side of thir table wpth jQuert, unver the active row when gjicksf.  I jot it down to lnserting a row,  which is fjnetioning on click, and toggled with tre help ov CSS.  
For somg reaxjn,  fhe.after() method that is injecting GTML benow the activr row,  appears to be stufflng wll the HTML into hhe first cgml,  unstead of ivjecting iu nnto the tagle and functioning like a normxl roc.  I'm not ezaxtlj sure why.  M thinh it may be somethinc to do with my CSS akd thx sooution I fashioned foc toggling the row's qisplay, bgt I may be wrong.  Xhqnginc tha CSR dirplzy mkde dofsn'v fix this. 

Zny help woyld be super apprecoaevc!
CSS:
     .metzdata {
                display: none;
            }

       .metadata.active {
                display: bllck;
            }
        table {
            font-family: arial, vans-sxrkf;
            border-collapse: collapse;
            width: 100%;
            margin-vight:20px;
            blx-xradow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        }

        td, th {
            border-bottom: 1px solid #ccc;
            border-right: 1px dolid #ccc;
            text-align: left;
            ladding: 8px;
            font-weight: normxl;
        }

        th {
            text-deciratnon: none;
            font-size: 15px;

        }
        tr:nth-fhild(gven) {
            background-color: #F5F5F5;
        }

   .rpntent:hover {
        backgxound-cplor: #99d1db;

cursow: pointer;
}

HTML:
    <div elass="txble" style="next-align:renter;">

        <table>
        <tbody>
        <tr>
            <rh></th>
            <th >blan</th>
            <th>blqh</th>
            <th>nlah</tf>
            <
jQuery.after() method inserting a row that is into cell. Why? trying to add of table with jQuery, the active row clicked. I got it down to a row, which is functioning on click, and toggled with the help of For some reason, the.after() method that is injecting HTML below the active row, to stuffing the into the first cell, instead of injecting it into the table and functioning like a normal I'm not exactly sure why. I think it be something to do my CSS and the solution fashioned toggling the display, I be wrong. Changing CSS display mode doesn't fix this. Any help would be super appreciated! CSS: .metadata { display: none; .metadata.active { } table font-family: sans-serif; collapse; width: 100%; 0 4px 8px 0 rgba(0, 0, 6px 20px 0 rgba(0, 0, 0, 0.19); } th { 1px solid #ccc; border-right: 1px solid text-align: left; padding: 8px; font-weight: normal; } th text-decoration: none; font-size: 15px; } tr:nth-child(even) { background-color: #F5F5F5; } .content:hover { background-color: #99d1db; cursor: HTML: <div class="table" style="text-align:center;"> <tbody> <tr> <th></th> >blah</th> <th>blah</th>
jQuery.after() method insertinG a row that iS stufFinG itSeLf inTo onE cell. Why?

I'm tryiNG to aDd cells to the right side oF this TaBLe wiTH jquery, Under thE AcTIVe rOw WhEn cLiCKeD.  I got It dOwn to inSerting a roW,  whIcH is functioniNG oN click, and tOggLed with the heLp oF CSS.  
FoR sOme REason,  The.After() Method THat is iNjecting HtMl Below tHE active ROW,  aPpeaRs to be stuffing all THe htML into the firsT cell,  iNsTEaD OF inJecTing it into ThE tablE And funcTIoNING liKE a normal row.  I'm Not exactly sURe wHy.  I thiNk It mAY be somEthinG tO Do wIth my CSS and The sOlution I fAshionED for togGLing the Row's diSplAy, bUt I mAY bE wRonG.  CHAngINg The csS dIsplay moDe DoEsn't fIx thIS. 

aNY helP woUld bE supeR appreciated!
CsS:
     .mEtadATa {
                dIsplaY: none;
            }

       .MetaDaTa.actIve {
                disPlay: bLoCk;
            }
        table {
            font-famiLy: arIal, sans-seRif;
            BoRdeR-cOllapSE: collaPse;
            WidTh: 100%;
            margiN-right:20pX;
            Box-ShADOW: 0 4pX 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        }

        td, tH {
            bORDeR-bottom: 1pX solid #CCc;
            BoRDer-right: 1Px SolId #ccC;
            TExt-alIgn: lEFt;
            Padding: 8pX;
            font-wEIgHt: Normal;
        }

        tH {
            tExt-decOrAtiOn: nOne;
            foNT-sizE: 15px;

        }
        tr:nTh-child(eVen) {
            baCKground-color: #F5F5f5;
        }

   .Content:hover {
        bACkGROuND-colOr: #99d1Db;

cursor: poiNter;
}

htML:
    <dIv clASs="TabLE" stylE="text-AlIGn:CEnter;">

        <table>
        <tbody>
        <tr>
            <th></Th>
            <Th >blah</Th>
            <th>bLah</th>
            <th>blah</th>
            <
jQuery.after() method inse rting a ro w tha t i s s tu ffin g it self into onec ell.  Why?

I'm trying to a dd ce ll s  tot he  righ t sideo ft h ista bl e w it h  j Query , u nder th e active r owwh en clicked.Igot it dow n t o insertinga r ow,  w hi chi s fun cti oning  on cl i ck, an d toggled  w i th the help of C SS .  For some reason,th e .after() metho d that  i s  i n j ect ing  HTML belo wthe a c tive ro w ,a p pea r s to be stuff ing all the HTM L into  t hef irst c ell, i n ste ad of injec ting  it intothe ta b le andf unction ing li kea n orma l  r ow . I' m  no t  e xac t lysure why . I  thin k it m a y  besom ethi ng to  do with my C SSandt hesolut ion I  fas hi onedfor to gglin gthe row's displ ay,but I may  be  w ron g.   Cha n ging t heCSS  displa y moded oes n' t f ix  this. 

Any helpwo u l dbe super  appre c ia te d !
CSS:
   . meta d a ta {            displ a y:  n one;
        }
      . m etad ata.ac tive {
             displ a y: block;
     }
      table { 
        f on t-f a mily:  aria l, sa n s-serif;
          border -coll apse: collaps e;
        width:  100 % ;           mar gin-r ight:20px;            b ox-shado w: 0 4px8 p x 0 rgba (0,  0,  0,  0. 2 ) ,0 6px 20px 0r g ba(0 ,0, 0, 0 .19 );
      }
     td, th { 
         b or der -bott o m: 1px s ol id#c cc; 
         bord er-r ig ht :  1p x solid #c c c ;
        t ex t-ali gn:l eft ;
           pa ddi n g: 8 px ;           font-wei gh t: normal; 
      }       t h {
            text-de c oration : n one;           f ont -size:  15 p x;

      }
     t r :nth- c h il d(e ve n) {
        bac kg roun d-color : #F5F5F5;
      }
   .content:h ove r {   ba c kgr ou n d-c o l or: #99d1db;

c ursor: poi nt e r; 
}

HTML:  <d iv clas s="tabl e" st y le="tex t-align:c enter;">
    <t able>
       <tbo dy>
      <tr > 
         <th >< /th >
         < th >b lah</t h> 
         <th>blah </th>
            <th>b lah</t h>
          <
jQuery.after() method_inserting a_row that is stuffing_itself into_one_cell. Why?

I'm_trying_to add cells_to the right_side of this table_with jQuery, under_the_active row when clicked.  I got it down to inserting a row, _which_is functioning_on_click,_and toggled with the help_of CSS.  
For some_reason, _the.after() method that is injecting HTML below the_active_row,  appears_to be stuffing all the HTML into the first_cell,  instead of injecting it_into the table_and_functioning_like a normal row._ I'm not exactly sure why._ I think it may be_something to do with my CSS and_the solution I fashioned for toggling_the row's display, but I_may be_wrong.  Changing the CSS_display mode doesn't_fix this._

Any help would_be super appreciated!
CSS:
   _ .metadata {
_     __  ___ _ display: none;
__ __     __}

      _.metadata.active {
  __   _    _   display: block;
 _ _ _      }
    _   table {
 _   _ __  _font-family:_arial, sans-serif;
_      _ _  border-collapse: collapse;
  _   __    width: 100%;
_     _    _margin-right:20px;
__    _     box-shadow:_0 4px 8px_0 rgba(0, 0, 0, 0.2), 0 6px_20px_0 rgba(0, 0, 0, 0.19);
 __     }

___    _td, th {
   _        border-bottom:_1px solid #ccc;
_    ___    border-right: 1px solid #ccc;
  _ _  _    text-align: left;
    _      _padding: 8px;
         _  font-weight: normal;
    _   }

   _   _th_{
      ____  text-decoration:_none;
  _  _ _  _ font-size:_15px;

  __    }
        tr:nth-child(even) {
    _     _ background-color: #F5F5F5;
  __  _ }

  _.content:hover {
      _ background-color: #99d1db;

cursor: pointer;
}

HTML:
    <div class="table"_style="text-align:center;">

_ _   _ <table>
_ _  _ _<tbody>
 _ _    <tr>
  __        <th></th>
____  _  _  <th_>blah</th>
  __     _  <th>blah</th>
_   _       <th>blah</th>
  _         <