I have created an element in jquery and I have stored it in a variable as I show it below:
x = $("<tr><td> Texto </td></tr>");
and if I print it in console in this way console.log (x [0]) print me the following
<tr><td> Texto </td></tr>
My question is whether there is a function or a way for the variable x to create a sibling and that when I print on the console I print something similar to the following
<tr><td> Un hermano antes </td></tr>
<tr><td> Texto </td></tr>
<tr><td> Un hermano despues </td></tr>