c# - Convert table html to datatables jquery -


i have table , must transform in "datatables jquery" format (tbody, thead...) , don't know how do, if possible jquery.

this table generated (note: return of string method in c# return in string writer):

<table cellspacing="0" rules="all" border="1" style="border-collapse:collapse;">     <tbody><tr>      </tr><tr>         <td>426</td><td>05/06/2014 10:14:21</td><td>119870</td><td>arquivos reunião</td><td>contrato</td><td>victor vasconcelos de aquino</td>     </tr><tr>         <td>436</td><td>10/06/2014 11:47:29</td><td>119870</td><td>arquivo mapp</td><td>contrato</td><td>victor vasconcelos de aquino</td>     </tr><tr>         <td>416</td><td>04/06/2014 14:50:07</td><td>119870</td><td>multiplos arquivos</td><td>contrato</td><td>victor vasconcelos de aquino</td>     </tr><tr>         <td>434</td><td>06/06/2014 14:11:25</td><td>119870</td><td>contrato 2</td><td>contrato</td><td>victor vasconcelos de aquino</td>     </tr><tr>         <td>419</td><td>04/06/2014 14:57:20</td><td>119870</td><td>multiplos arquivos mapp</td><td>convenio</td><td>victor vasconcelos de aquino</td>     </tr><tr>         <td>444</td><td>18/06/2014 11:18:47</td><td>119870</td><td>documento</td><td>licitaÇÃo</td><td>victor vasconcelos de aquino</td>     </tr><tr>         <td>441</td><td>18/06/2014 09:55:31</td><td>119870</td><td>teste</td><td>licitaÇÃo</td><td>victor vasconcelos de aquino</td>     </tr><tr>         <td>443</td><td>18/06/2014 10:49:08</td><td>119870</td><td>material</td><td>licitaÇÃo</td><td>victor vasconcelos de aquino</td>     </tr> </tbody></table> 

if trying add thead table using jquery, this:

$('table tbody').before('<thead></thead>'); 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -