I'm trying to append to this code:
<table class="stores" border="1" cellspacing="10">
    <tr>Stores:</tr>
</table>
This code, which I want to work, doesn't:
$('.stores').append('&开发者_开发技巧lt;tr>Test</tr>');
This one does work:
$('.stores').append('<p>Test</p>');
Can you say why?
P.S. Not sure it matters but I'm working under WordPress.
You can't have text between tr-tags. Try this:
$('.stores').append('<tr><td>Test</td></tr>');
That's not valid HTML. You're missing the <td>
Works fine when you change the markup : http://jsfiddle.net/jomanlk/XHvVk/
$('.stores').append('<tr><td>Test</td></tr>');
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论