I am using the following jQuery code to append to my table:
$("tbody#order_details").append('<tr>...</tr><tr>...</tr>');
$("tbody#order_details").append('<tr>...</tr><tr>...</tr>');
However, when it executes it places the <tr>...</tr><tr>...</tr> on the top of the page instead of below where the current <tbody id="order_details"> starts.
The table code is this:
<table border="1" cellspacing="0" cellpadding="0" id="OrdersTable"
style="border: 1px solid black; margin-top: 0px;">
<tbody>
<tr>
<th>Account Number</th>
<td colspan="3">99996</td>
<th>Email</th>
<td colspan="5"><asp:Label ID="billing_email" runat="server" Text="Label"></asp:Label></td>
</tr>
<tr>
etc etc....
</tbody>
<tbody id="order_details">
<!-- Start looping the orders here -->
</tbody>
</table>
What am I forgetting to put in order for it to add those two lines AFTER the <tbody id="order_details">?
tbodytag with a closingtheadtag...is meant to imply "stuff here that I'm not including for brevity" rather than a literal.... The problem does seem to be the twotbodytags, the first of which should bethead. Most browsers will self-correct the invalid markup, so the OP effectively has twotbodytags, and so the rows will be appended to each one.