500-reward points and appriciation
Posted on 2006-07-13
I am having some elements in an array and i am displaying them in a table with each row having a checkbox and a serial number.
And i am having 2 buttons "MoveUp" and "MoveDown".
If i check the checkbox of 3rd row and click on MoveUp button the entire 3rd row must be moved up so that it will be the 2nd row now and the previous second row now will be 3rd row.And the serial number must also be changed to 3 to 2 and 2 to 3.
MoveDown is just reverse of the above approach also.
I am having so many rows in a table.
so i want script or any suggestions on how to do that for which i will really appriciate your approach.
Thanks for All in advance.