Topic: dynamically add data to mdb table
du Toit free asked 6 years ago
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.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No