Home > Web Front-end > JS Tutorial > body text

jquery implements an instance of draggable DIV customization saved to data_jquery

WBOY
Release: 2016-05-16 17:13:35
Original
938 people have browsed it

I saw a good jquery plug-in that can drag DIVs and save the order to an instance of the database: Here is a brief explanation of the PHP example:

Copy code The code is as follows:

//Post data to the background
if ($_POST) {
$ids = $_POST["ids"];
for ($idx = 0; $idx < count($ids); $idx =1) {
$id = $ids[$idx ];
$ordinal = $idx;
//...
>



Copy code

The code is as follows:

 

 
 
     
 
 
   
 
         

       

jQuery List DragSort PHP Example

 

        Homepage
 
       
 

       

Save list order with ajax:

 

         

         
         

       
 
   
 
 
 
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template