如何排序动态呈现的表...? [英] How to sort a dynamically rendered table...?
问题描述
我使用AJAX来显示一个表格,我需要使用javascript或jquery的什么是最好的排序,在客户端的呈现表...
I am using AJAX to display a table, I need to sort that rendered table at client side using javascript or jquery what is best...
我尝试jQuery的它工作正常时,页面加载但通过动态编写HTML内容转换成一个div并有通过整理,提炼表是不工作...
I tried jQuery it is working fine when page is loaded but by dynamically writing html content into a div and there by sorting that rendered table is not working...
任何一个可以帮助我解决这个...
Can any one help me out in solving this...
我认为这个问题是在渲染JavaScript的不工作,我写了一些剧本警报而呈现HTML这些标签的作品在呈现网页...
I think the problem is javascript is not working while rendering, I wrote some script alert while rendering html these tags works while rendering a page...
在此先感谢...
推荐答案
通过使用tablesorter插件:
By using tablesorter plugin:
$("table").tablesorter();
重新运行在每次表的影响(即它不会被足够多的运行此命令一次,当页面加载完成)
re-running each time table is affected (i.e it will not be enought to run this command once when page loading is complete)
这篇关于如何排序动态呈现的表...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!