Is there a way to transform a table into a Bootstrap grid, without using CSS. I can't use jquery to rewrite the tags, because the table has another JavaScript attached with events etc.
I want to accomplish that the cell are stacked on xs-devices.
From:
<table class="table table-bordered">
<tbody>
<tr>
<td>cell11</td>
<td>cell12</td>
<td>cell13 Lorem ipsum ... magna aliquyam</td>
<td>cell14 Li Europan ... li existent Europan</td>
</tr>
...
</tbody>
</table>
To:
<div class="col-xs-12 table-bordered gridtable">
<div class="row">
<div class="col-xs-6 col-md-1">cell11</div>
<div class="col-xs-6 col-md-1">cell12</div>
<div class="col-md-4">cell13 Lorem ipsum ... magna aliquyam</div>
<div class="col-md-6">cell14 Li Europan ... existent Europan</div>
</div>
...
</div>
I created a small demo http://www.bootply.com/sRZF3LfHPU
The upper part is the kind of table I get.
The lower part is the kind of look I want to archive. Reduce the width to xs-device level to see the difference.
This is not a duplicate to How to use Bootstrap 3 grid system with table component? because in that answer the cells will no stack.