Home  >  Article  >  Web Front-end  >  Use jquery to write a small function to change the order of table rows_jquery

Use jquery to write a small function to change the order of table rows_jquery

WBOY
WBOYOriginal
2016-05-16 16:50:411045browse

I wrote a small function to change the order of table rows over the weekend. I directly pasted the code

and the table part is as follows:

Copy the code The code is as follows:




















Time Details Operations

2014-04-29 11 :02:24

Details



< ;/td>

2014-04-28 10:00:00

Details

< ;span class="move_btn glyphicon glyphicon-arrow-up" move_act="up">
< ;/span>


js code, which will Add class=danger after the change sequence for the lines to be changed
Copy the code The code is as follows:



After changing, you can submit a new order according to the unique tag of each line

Tucao: shouting Companies that work overtime = wolf nature are not suitable for normal human existence. It is even more nonsense to regard overtime work on weekends as something to be encouraged and the standard for evaluating whether employees have wolf nature.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn