datatable.net() not working
datatable.net() not working
Lee SongSeop
Posts: 4Questions: 0Answers: 0
Hi. I am trying to make a table using datatalbe.net but no matter what, can you tell me how to fix it?
here code:
<html>
<head>
<title></title>
<script src="https://code.jquery.com/jquery-3.3.1.js" crossorigin="anonymous"></script>
<link href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function () {
var table = $('#Projcet_table').DataTable();
});
</script>
</head>
<h2>Project</h2>
<body>
<table class="display" id="Projcet_table" style="width:100%">
<thead>
<tr>
<th>프로젝트</th>
<th>PROJ_NO</th>
<th>시리즈 대표 호선</th>
<th>선급</th>
<th>프로젝트 명</th>
<th>선주</th>
<th>선종</th>
<th>S/C</th>
<th>K/L</th>
<th>L/C</th>
<th>D/L</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>@item.SKND_GRP</td>
<td>@item.PROJ_NO</td>
<td>@item.SERS_NO</td>
<td>@item.CLS_1</td>
<td>@item.PROJ_DSC</td>
<td>@item.OWN_AB</td>
<td>@item.SKND</td>
<td>@item.SC_DT</td>
<td>@item.KL_DT</td>
<td>@item.LC_DT</td>
<td>@item.DL_DT</td>
</tr>
}
</tbody>
</table>
</body>
</html>
This discussion has been closed.
Replies
What error messages are shown in your browser's console?
Allan
Thank you, but I've settled it '$.NoConflict();' added so it's solved!!
Some connection to this thread...