3
Answers

Swap the table rows dynamically

Neelima

Neelima

16y
7.2k
1
Hi,

I have a table with 5 rows and a link with name say 'swap'...which looks like..

<tr1> swap
<tr2>
<tr3>

<tr4>
<tr5>

When i click on swap, the positions of <tr2> an <tr3> i the table should get swaped. ie., the order of the <tr> should become as shown :


<tr1> swap
<tr3>
<tr2>

<tr4>
<tr5>

Is there any way to do it?

Thanks in Advance..!!

-Neelima
Answers (3)