What i am trying to do is append the Table and its contents after *test123 that is before </span> tag is closed, but its not working, not sure what is wrong in this code ?*
JQUERY CODE
$('span[itemprop="description"]').append($('C1')); HTML CODE
<span itemprop='description'>test123</span> this is outside of span tag<br> <table width="200" border="1" class="C1"> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> </table>
appendis appending the stuff into your span element not after it$('.C1')to get the elements of class C1? Is that what you were trying to do?