Drag and Drop rows using jquery with ajax example

Drag and Drop rows using jquery with ajax example

In this example, we will explain to you how to drag and drop rows using jquery with ajax example. let’s start how to create drag and drop jquery example using the jquery UI library.

We are using droppable, draggable and ajax in this example. first, we will connect the MySQL and we divided into two part left and right help through bootstrap. here this example in left known as “All List Country” and right known as “Selected Country”.

We have taken the status field in the database. its value is a 0 and 1. The 0 status data are displaying into the left column and 1 status data are displaying into the right column. when left column country row drag and drop in the right column then will call the ajax that time it’s row data status will be updated into the database. Like that it will be with the right column.

So you can see our example source code.

Database

index.php

update_item_status.php

If you like this article then You can see, comment and share this article demo

Show Demo

Please follow and like us: