DataTables Child row is not coming when i am using the example given in the Datatables.net website

DataTables Child row is not coming when i am using the example given in the Datatables.net website

lucifer3211lucifer3211 Posts: 6Questions: 3Answers: 0

I need a functionality of datatables which will give the child rows expand and close functionality.The example that is given in the website is ideal for me .But when i am trying to implement that ,it is not working for me.Somebody please help.

<!DOCTYPE html>

<html>
<head>

<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.5/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/responsive/1.0.4/css/dataTables.responsive.css">



</head>
<body>

$(document).ready(function() { $('#example').DataTable( { responsive: { details: { type: 'column', target: 'tr' } }, columnDefs: [ { className: 'control', orderable: false, targets: 0 } ], order: [ 1, 'asc' ] } ); } );

<body>

First name Last name Position Office Age Start date Salary Extn.
First name Last name Position Office Age Start date Salary Extn.
Tiger Nixon System Architect Edinburgh 61 2011/04/25 $320,800 5421
Colleen Hurst Javascript Developer San Francisco 39 2009/09/15 $205,500 2360

</body>
</html>

Answers

This discussion has been closed.