Commit 2b61c9e2 authored by Mat's avatar Mat

ajax mainDisplay, on ajoute une colonne id à la table

parent 310c4354
......@@ -21,6 +21,7 @@
<table id="table-owners">
<thead>
<tr>
<th>#</th>
<th>Nom</th>
<th>Prénom</th>
<th>Date</th>
......@@ -62,6 +63,10 @@
{
let tr = document.createElement('tr');
let td0 = document.createElement('td');
td0.textContent = json[i].id;
tr.appendChild(td0);
let td1 = document.createElement('td');
td1.textContent = json[i].firstname;
tr.appendChild(td1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment