jQuery insert a table object after a table in IE7
<h1>Maybe I did not explain my question clearly, and if you think my question is not necessary, at least show me where I can see similar solution, please!. From my point of view, the IE7 comparability issue should be addressed.</h1>

<p>I have question about how to insert a table object (class='b') after an existing table (class='a') by jQuery in IE7 (everything looks well in IE8 or Chrome). Can anyone give me some suggestions on the below code?</p>

<pre><code>// This is the existing table
&lt;table class='a' align="center"&gt;
&lt;tr&gt;&lt;th&gt;&lt;label for="id_S"&gt;Number of modeled stages:&lt;/label&gt;&lt;/th&gt;&lt;td&gt;&lt;select name="S" id="id_S"&gt;
&lt;option value=""&gt;Please choose&lt;/option&gt;
&lt;option value="2"&gt;2&lt;/option&gt;
&lt;option value="3"&gt;3&lt;/option&gt;
&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;   //I would like to insert a table class='b' right after this &lt;/table&gt; tag

&lt;script&gt;
$(document).ready(function() {

$('&lt;table class="b" border="0" align="center"&gt;&lt;tr&gt;&lt;th width="5"&gt;Matrix:&lt;/th&gt;&lt;/tr&gt;&lt;/table&gt;').appendTo('.a'); //this works in IE8 but not in IE7

})
&lt;/script&gt;

// The following code works in IE7, but it messed up the layout

&lt;script&gt;
$(document).ready(function() {

$('&lt;table class="leslie" border="0" align="center"&gt;&lt;tr&gt;&lt;th width="5"&gt;Matrix:&lt;/th&gt;&lt;/tr&gt;&lt;/table&gt;').appendTo('.a td:last');    //this works in IE7, once I changed it to tr:last, it does not work again.

})
&lt;/script&gt;
</code></pre>

<h1>Update</h1>

<p>I tried a even simpler case. In IE7, I am able to see the alert message, but could not see the added table row. It seems like IE7 could not show the extra HTML table, but could process the JavaScript code.</p>

<pre><code>&lt;script&gt;
$('&lt;table class="b" border="0" align="center"&gt;&lt;tr&gt;&lt;th width="5"&gt;Lesile Matrix:&lt;/th&gt;&lt;/tr&gt;&lt;/table&gt;').appendTo('.a');    
alert('s')
&lt;/script&gt;
</code></pre>
