<!-- Table --> <div class="table1"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="13"><input type="checkbox" class="checkbox" /></th> <th>Case Nr</th> <th>Subject</th> <th>Description</th> <th>Created_By</th> <th>Created_On</th> <th>Came_From</th> <th>Remarks</th> <th class="ac">Actions</th> </tr> <tr> <td><input type="checkbox" class="checkbox" /></td> <td>342Y4-T45</td> <td><a href="#">Curriculum Decision</a></td> <td>Lorem ipsum dolor sit amet, consectetur.</td> <td><a href="#">Administrator</a></td> <td title="time: 22:30:34">12.34.2012</a></td> <td><a href="#">Guest</a></td> <td>NULL</td> <td><a href="#" class="ico accept" onclick="accept();">Accept</a><a href="#" class="ico reject">Reject</a></td> </tr> <tr> <td><input type="checkbox" class="checkbox" /></td> <td>342Y4-T452</td> <td><a href="#">Curriculum Decision</a></td> <td>Lorem ipsum dolor sit amet, consectetur.</td> <td><a href="#">Administrator</a></td> <td title="time: 22:30:34">12.34.2012</a></td> <td><a href="#">Guest</a></td> <td>NULL</td> <td><a href="#" class="ico accept" onclick="accept();">Accept</a><a href="#" class="ico reject">Reject</a></td> </tr> <tr> <td><input type="checkbox" class="checkbox" /></td> <td>342Y4-T453</td> <td><a href="#">Curriculum Decision</a></td> <td>Lorem ipsum dolor sit amet, consectetur.</td> <td><a href="#">Administrator</a></td> <td title="time: 22:30:34">12.34.2012</a></td> <td><a href="#">Guest</a></td> <td>NULL</td> <td><a href="#" class="ico accept" onclick="accept();">Accept</a><a href="#" class="ico reject">Reject</a></td> </tr> </table> <!-- Pagging --> <div class="pagging"> <div class="left">Showing 1-12 of 44</div> <div class="right"> <a href="#">Previous</a> <a href="#">1</a> <a href="#">2</a> <a href="#">3</a> <a href="#">4</a> <a href="#">245</a> <span>...</span> <a href="#">Next</a> <a href="#">View all</a> </div> </div> <!-- End Pagging -->
and when i press accept link i want to move that row to another same table as #table1 but with the id#table two and instead of accept and reject links to show another links... (note that first <tr> should be skipped because its a table header)
I tried smth like this:
<script type="text/javascript">
function accept(){
$(".table1 tr").eq(1).insertAfter($(".table2 tr"));
}
</script>
The first <tr> moves ok. but when i press to move the second row it moves it. but i show it two times...
Can anyone helo me to achieve what i want???

New Topic/Question
Reply


MultiQuote




|