Effect picture: 1. Import files <script src="js/jquery-1.10.1.min.js"></script> <link rel="stylesheet" href="Public/css/jquery-ui.min.css"> <script src="js/jquery-ui.min.js"></script> 2. Attach the sortable class to the element <tbody class="sortable"> <tr></tr> <tr></tr> </tbody> 3. Enable and configure $(function() { $(".sortable").sortable({ cursor: "move", items: "tr", //Only tr can be dragged opacity: 0.6, //When dragging, the transparency is 0.6 revert: true, //When releasing, add animation update: function(event, ui) { //After updating the sort var categoryids = $(this).sortable("toArray"); var $this = $(this); } }); $(".sortable").disableSelection(); }); The above is the HTML table mouse drag sorting function introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! |
<<: Linux system repair mode (single user mode)
>>: Comprehensive inventory of important log files in MySQL
Does performance really matter? Performance is im...
Before hiding: After hiding: CSS: Copy code The co...
"Page screenshot" is a requirement ofte...
Get daily statistics When doing a project, you ne...
first step: In VMware, click "Edit" - &...
CSS attribute selectors are amazing. They can hel...
MySql always pops up a MySQLInstallerConsole.exe ...
Introduction to sudo authority delegation su swit...
Main library execution CREATE DATABASE test CHARA...
The a tag is mainly used to implement page jump, ...
JPQL stands for Java Persistence Query Language. ...
Table of contents Preface 1. Check the file disk ...
1. Install MySQL # Download mysql in docker docke...
Table of contents Preface Demonstration effect HT...
Table of contents Impact of full table scan on th...