Update (ajax) only part of table without affecting whole table
Posted
by ile
on Stack Overflow
See other posts from Stack Overflow
or by ile
Published on 2010-06-02T19:23:59Z
Indexed on
2010/06/02
19:34 UTC
Read the original article
Hit count: 157
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
<tr>
<th><a href="#" class="sortby">Full Name</a></th>
<th><a href="#" class="sortby">City</a></th>
<th><a href="#" class="sortby">Country</a></th>
<th><a href="#" class="sortby">Status</a></th>
<th><a href="#" class="sortby">Education</a></th>
<th><a href="#" class="sortby">Tasks</a></th>
</tr>
<div class="dynamicData">
<tr>
<td>Firstname Lastname</a></td>
<td>Los Angeles</td>
<td>USA</td>
<td>Married</td>
<td>High School</td>
<td>4</td>
</tr>
</tr>
<tr>
<td>Firstname Lastname</a></td>
<td>Los Angeles</td>
<td>USA</td>
<td>Married</td>
<td>High School</td>
<td>4</td>
</tr>
</div>
</table>
The idea is to update table rows when clicking on link with clasl "sortby"
which is part of th
table
tag.
I tried inserting div but this doesn't work. Separating this in two tables is not good solution because witdh in both tables cell are not following each other. Any other solution?
Thanks
© Stack Overflow or respective owner