Topic: dynamically add data to mdb table
mirnesc92 pro answered 7 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
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No