How to make something like this header in jQuery DataTable?
-
Please specify in your question what you're having a problem with.David Hedlund– David Hedlund2015-08-10 08:33:02 +00:00Commented Aug 10, 2015 at 8:33
-
My problem is how to make a header in JQuery DatabTable like the picture I posted.iamjc015– iamjc0152015-08-10 08:34:10 +00:00Commented Aug 10, 2015 at 8:34
Add a comment
|
1 Answer
Yes, see the tabs (mainly the html one): https://www.datatables.net/examples/basic_init/complex_header.html
Applied to your case, http://jsfiddle.net/t4tzwm6c/ (it really is just a matter of html rowspan and colspan)
Snippet:
<table>
<thead>
<tr>
<th rowspan="2">Operation conducted</th>
<th colspan="3">Drug evidence seized</th>
</tr>
<tr>
<th>Shabu</th>
<th>Majijuana</th>
<th>Others</th>
</tr>
</thead>
