Hallo,
ich versuche eine Tabelle in einen Datatable zu "verwandeln". Ich habe mir ein simples Beispiel geggogeled, aber es will einfach nicht funtionieren.
Weiss jemand wo der Fehler lieg?
HTML
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>x</title>
<!-- HTMl5 Elemente für alte Browser erzeugen-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="http://cdn.datatables.net/1.10.11/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="http://cdn.datatables.net/1.10.11/css/jquery.dataTables.min.css">
</head>
<body>
<table id="example">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
<script>
$(document).ready(function() {
$('#example').DataTable();
});
</script>
</body>
</html>
Alles anzeigen