jQuery table column free drag sorting
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Free dragging and sorting of table columns js code</title>
<link href="css/columnDrag.css" rel="stylesheet" type="text/css">
</head>
<body><script src="/demos/googlegg.js"></script>
<h1 class="datouwang">jQuery table column free drag sorting</h1>
<div id="chenkbox">
<table id="tableSort">
<tr>
<th onclick="sortTable('tableSort',0)" title="Click to sort"> sequence </th>
<th onclick="sortTable('tableSort',1)" title="Click to sort"> name </th>
<th onclick="sortTable('tableSort',2)" title="Click to sort"> quantity </th>
<th onclick="sortTable('tableSort',3)" title="Click to sort"> Unit price (Q points) </th>
<th onclick="sortTable('tableSort',4)" title="Click to sort"> Total (Q points) </th>
</tr>
<tr>
<td>1</td>
<td>Farm phone bill A</td>
<td>2</td>
<td>50</td>
<td>100</td>
</tr>
A very good js code for freely dragging and sorting table columns. Click and hold the mouse to drag and sort table columns, exchange column sorting codes, and click on the head of the table to support the sorting effect of table data ascending and descending.
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
16 May 2016
When the mouse stays on the border line of the table header, and then drags the mouse, a vertical line will appear in the table that moves with the mouse. Finally, release the mouse, and the table column width will be adjusted.
16 May 2016
When the mouse stays on the border line of the table header, the mouse will change into a shape indicating dragging left and right. Then drag the mouse, and a vertical line will appear in the table that moves with the mouse. Finally, let go of the mouse, and the column width of the table will be adjusted. Adjustment
26 Apr 2023
In front-end development, we often need to use jQuery to handle some interactive effects and animation effects, such as animation effects when the mouse is hovering, animation effects when the page is loading, etc. But sometimes we need to set a delay time so that these effects can be better expressed. So, how does jQuery set a delay? This article will introduce this issue in detail. 1. Delay method in jQuery In jQuery, delay effect can be easily achieved by using the delay() method. The delay() method can be used
16 May 2016
jQuery UI CSS Framework is a style framework in jQuery UI. You can use jQuery Theme roller to generate the css style effects you want. We can use some frameworks of jQuery UI to develop plug-ins based on jQuery UI CSS Framework effects.
23 May 2023
With the popularity of the Internet, the application of typing effects is becoming more and more widespread, and jquery typing effects have become the first choice of many website developers. However, in the process of realizing this special effect, detailed issues often affect the user experience, such as the problem of deletion of typing special effects. This article will introduce how to use jquery typing effects to stop deletion and improve the user's browsing experience. The implementation of jquery typing effects can use ready-made plug-ins, such as typed.js and jQuery.Typewriter. These plug-ins are based on jquery
16 May 2016
animate() is a method in jquery that can be used to create animation effects. The animate() method in jquery adds good visual effects to that page.
16 May 2016
This article collects three different types of jquery timeline effects for everyone, involving jquer related knowledge. Friends who are interested in jquery timeline effects can refer to this article.
16 May 2016
There are many jquery prompt effects. This article also provides a super beautiful pop-up layer effect imitating Tencent. If you love special effects, don’t miss it. I hope the cases provided in this article will be helpful for you to learn jquery special effects.
28 Nov 2018
Animation effects in jQuery include: slideDown, slideUp, etc. to achieve sliding effects; fadeIn, fadeToggle, etc. to achieve fade-in and fade-out effects.
Hot Tools
jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects
A very popular jQuery Valentine's Day confession fireworks animation special effect on Douyin, suitable for programmers and technical geeks to express their love to the girl they love. No matter you choose to be willing or not, you have to agree in the end.
layui responsive animated login interface template
layui responsive animated login interface template
520 Valentine's Day confession web animation special effects
jQuery Valentine's Day Confession Animation, 520 Confession Background Animation
Cool system login page
Cool system login page
HTML5 tape music player-CASSETTE PLAYER
HTML5 tape music player-CASSETTE PLAYER