Topic: dynamically add data to mdb table
du Toit free asked 6 years ago
Good Day,
I am investigating MDBootstrap and I was wondering if there is a way to dynamically add data to MDBootstrap table?
Thanx
Add comment
mirnesc92 pro answered 6 years ago
MDBootstrap's table is just a regular styled HTML table, you can dynamically loop through the rows of the table using whatever back-end your project is using (PHP, JS, etc).
in JQuery
$('#myTable').append('<tr><td>my data</td><td>more data</td></tr>');
in PHP
<?php foreach($rows as $row) : ?> <tr><td>my data</td><td>more data</td></tr> <?php endforeach; ?>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Tags