Comments (6)
How many elements do you have in the table? If you have less than 15 then you won't notice a difference.
If this is not the case, I would need data to investigate. Could you send me the generated HTML table?
from datatable.
What "does not work"? The table or one of the command? e.title
is likely undefined since you used data from an HTML table, so you need e[n]
where n
is the number of the relevant column.
from datatable.
The table still show. But it is not paged
from datatable.
It is my table now.
<table class="table table-hover" id="MyTable">
<thead class="thead-dark">
<tr>
<th scope="col">STT</th>
<th scope="col">Class Name</th>
<th scope="col">Subject</th>
</tr>
</thead>
<tbody>
<tr>
<td scope="row">1</td>
<td><a href="">CP14</a></td>
<td>2</td>
</tr>
<tr>
<td scope="row">2</td>
<td><a href="">CP15</a></td>
<td>3</td>
</tr>
<tr>
<td scope="row">3</td>
<td><a href="">CP16</a></td>
<td>2</td>
</tr>
<tr>
<td scope="row">4</td>
<td><a href="">CP17</a></td>
<td>0</td>
</tr>
<tr>
<td scope="row">5</td>
<td><a href="">CP18</a></td>
<td>3</td>
</tr>
<tr>
<td scope="row">6</td>
<td><a href="">CP12</a></td>
<td>3</td>
</tr>
</tbody>
</table>
I just change pageSize to 5 but it still not work
from datatable.
I have no issue with your table, did you:
- Add a
<div>
for paging? e.g.,<div class="paging"></div>
after the table? - Include both
datatable.min.js
anddatatable.jquery.min.js
?
from datatable.
Thanh for your help! But I still have a question. Can it use for 2 or more table in one page??
I just add an id like $('#MyTable, #Mytable2').datatable
but it look not work!
from datatable.
Related Issues (20)
- Inject data to table row HOT 4
- Nullpointer Exception table with filter and no data
- CSS not work HOT 4
- Extract filtered records HOT 11
- Filter outside the table HOT 2
- No idea how to make filter outside table HOT 1
- Get number of a table row. HOT 6
- Update table data HOT 19
- Process Ajax Data Before Displaying on Table! HOT 3
- Using Filter/Sort with hidden child rows HOT 3
- Question: How to search/filter multiple columns with one search field HOT 2
- Was cleared all attributes from td. HOT 1
- Click in a row event HOT 3
- Filter by date mm/dd/yyyy HOT 1
- Ajax Doesn't Work HOT 4
- filter is not function after apply addRows HOT 2
- Table reload method HOT 2
- how can i implement for rowspan ? HOT 3
- how to set default page ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datatable.