• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Moving tr in a table

 
ms raaghu
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem in moving the tr's up and down on clicking on the arrows on the side. my table structure is as below:

<table cellspacing="0" cellpadding="0" class="srTable">
<tbody id="SrvAddrs">
<tr>
<td>
</td>
</tr>
</tbody>
</table>

Could anyone please help me out in doing this in jquery or javascript.

Thanks,
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you try?
 
ms raaghu
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried doing it by re submit the page but now the requirement is do without submitting. Could you please help me doing?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know how to select a row with jQuery? Do you know how to call clone()? Do you know remove()? Do you know about insertBefore()? Do you know how to add click events?

Eric
 
ms raaghu
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no, am very new to jquery.. could you please help me out in this

-Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give it your best shot and post your code. We'll help you with your code but will not write it for you.
 
ms raaghu
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okies .. actually this is what i have written
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic