I have multiple data returned from a php function. now I want to dynamically add rows on the modal to set the data.. hw can i do that,..? i already have one row defined on the modal with some css. I want to have the rows dynamically created with same css.
<div class="modal-content">
<div class="modal-header">
<h3>New Learner</h3>
</div>
<div class="modal-body">
<table class="pure-table">
<tr class="table-header">
<th>Name</th>
<th>Student ID</th>
<th>e-mail</th>
<th></th>
</tr>
<!-- Generates all students who match Below generated based on Query Results clicked -->
<tr class="table-data pure-table-odd">
<td id="new_search_email_name"></td>
<td id="new_search_email_student_number"></td>
<td id="new_search_email_email"></td>
<td><a href="#" class="right-align" data-toggle="modal" data-target="#registration-form">
<button id="use_existing_learner" name="use_existing_learner" onClick="edit()" type="add" class="pure-button pure-button-primary"><span class="icon-font"></span> Use This Learner </button>
<!-- this button needs to somehow load all the data for this one into the reg form modal -->
</a></td>
</tr>
</table>
</div>