I have some like that.
<script src="http://code.jquery.com/jquery-latest.js"></script>
<table>
<tr title="test" id="ex1">
<td><div class="move">Hello</div></td>
<td> </td>
<td> </td>
</tr>
<tr id="ex2">
<td><div class="move">Hello</div></td>
<td> </td>
<td> </td>
</tr>
</table>
<button>Move</button>
<script>
$("button").click(function () {
$(".move").remove();
});
</script>
If I press button, the both div's will moved. But I need to move only one, according to id of tr it laid.
I have only wrong ideas:
$(".move").parent.parent.attr('id', 'ex2').remove();
Thank you so much!