使用javascript交换表的行 [英] Swaping rows of a table using javascript

查看:78
本文介绍了使用javascript交换表的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨开发者和程序员!!!


我面临着复杂的情况。我必须使用javascript交换表客户端的行。


我以为我可以使用HTML Dom来做但我无法做到,任何人都可以帮助我。假设我想使用javascript点击上移按钮将项目2向上移动一级,如何使用java脚本。如果能获得一些代码片段,我将非常感激。


 










Item 1

Item 2

 


Bye ............

解决方案


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dhtmltechcol/ cols / dndude / dude07232001.asp?frame = true 可以帮助我们了解如何从脚本中操作表格。


谢谢
-Dave


Hi Developers and coders!!!

I am facing a complex situation. I have to swap rows of a table client side using javascript.

I thought i could do it using HTML Dom but i am not able to do it, can any one help me for this. suppose i want to move Item 2 one level up on click of move up button using javascript, how is it possible using java script. I will be very thankful if could get some code snippet.

 

Item 1
Item 2

 

Bye............

解决方案

Hi,

The article at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dhtmltechcol/cols/dndude/dude07232001.asp?frame=true may help give some idea on how to manipulate tables from script.

Thanks
-Dave


这篇关于使用javascript交换表的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆