Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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

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; ?>

 



Please insert min. 20 characters.

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