I have a dynamic table that is being generated that I cannot alter. The table has a checkbox and a label next to it. They are both within the same and need to be in their own within the same . I have tried several solutions but they have not worked. Any help would be greatly appreciated.
<tr>
<td>
<input type="checkbox" value="1" name="check1" id="someID">
<label for="question">label</label>
</td>
<tr>
<tr>
<td>
<input type="checkbox" value="1" name="check2" id="someID2">
<label for="question">label</label>
</td>
<tr>
I need to it look like this:
<tr>
<td>
<input type="checkbox" value="1" name="check1" id="someID">
</td>
<td>
<label for="question">label</label>
</td>
<tr>
<tr>
<td>
<input type="checkbox" value="1" name="check2" id="someID2">
</td>
<td>
<label for="question">label</label>
</td>
<tr>
Here is the jquery that I have been trying:
$("</td>").insertAfter(".form-group td input");