如何使用javascript排序多个表格......

编程入门 行业动态 更新时间:2024-10-26 16:27:37
本文介绍了如何使用javascript排序多个表格......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何使用javascript对多个表进行排序:

how to sorting multiple table using javascript:

<html xmlns="www.w3/1999/xhtml"> <head> <title></title> </head> <body> <table cellspacing="5" border="0" cellpadding="0" width="100%" style="border-width: 1px; border-color: Red; border-style: ridge" id="table_demo_world" class="demo"> <thead> <tr> <td colspan="6"> <table cellspacing="0" cellpadding="0" width="100%" id="gridText"> <tr style="background: removed(/TravelOcity-vss/Images/pay.gif); background-color: Red;<br mode=" hold=" /> height: 25px;"> <th align="center" class="Paymentheader" style="width: 100px; height: 25px;"> Airlines </th> <th align="center" class="Paymentheader" style="width: 120px; height: 25px;"> Departure </th> <th align="center" class="Paymentheader" style="width: 145px; height: 25px;"> Arrival </th> <th align="center" class="Paymentheader" style="width: 120px; height: 25px;"> Duration </th> <th align="center" class="Paymentheader" style="width: 100px; height: 25px;"> Total Fare </th> <th align="center" class="Paymentheader" style="width: 100px; height: 25px;"> Book </th> </tr> </table> </td> </tr> </thead> <tbody> <tr> <td colspan="6"> <table width="100%" style="border-width: 1px; border-color: Gray; border-style: ridge"> <tr> <td colspan="6"> <br /> </td> </tr> <tr> <td align="center" style="width: 100px;"> 312 </td> <td align="center" style="width: 150px;"> 07:05 <td align="center" style="width: 150px;"> 09:40 </td> <td align="center" class="AvailFontFize" style="width: 150px;"> 02Hrs 35Mins<br /> </td> <td align="center" style="width: 100px;"> <span class="FareFontFize">र.5259.00</span> </td> <td align="center" style="width: 100px;"> Fare Summary </td> </td></tr> <tr> <td colspan="6"> <br /> </td> </tr> </table> </td> </tr> <tr> <td colspan="6"> <table width="100%" style="border-width: 1px; border-color: Gray; border-style: ridge"> <tr> <td colspan="6"> <br /> </td> </tr> <tr> <td align="center" style="width: 100px;"> 304 </td> <td align="center" style="width: 150px;"> 11:40 </td> <td align="center" style="width: 150px;"> 14:25 </td> <td align="center" class="AvailFontFize" style="width: 150px;"> 02Hrs 45Mins<br /> </td> <td align="center" style="width: 100px;"> <span class="FareFontFize">र.5259.00</span> </td> <td align="center" style="width: 100px;"> Fare Summary </td> </tr> <tr> <td colspan="6"> <br /> </td> </tr> </table> </td> </tr> </tbody> </table> </body> </html>

关于.....

regarding.....

推荐答案

请检查以下链接 使用jQuery对HTML表进行排序 [ ^ ] 谢谢, Imdadhusen Hi, Please check following link Sort an HTML table using jQuery[^] Thanks, Imdadhusen

这可能对您有帮助 tympanus/codrops/2009/10/03/33-javascript-solutions-for-sorting-tables/ [ ^ ] This may help you tympanus/codrops/2009/10/03/33-javascript-solutions-for-sorting-tables/[^]

更多推荐

如何使用javascript排序多个表格......

本文发布于:2023-07-26 09:32:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1215518.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   如何使用   表格   javascript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!