Drag and Drop Table Rows Using Javascript

I am wondering if there is a good library or script that trivializes the drag and drop function for table rows in Javascript? In fact, the only requirement I have is that rows must be dragged inside the table itself, as well as to other tables on the page. I am not too familiar with jQuery or Javascript, so I would like to try to find a standalone library or script, which makes the drag and drop part pretty simple, so I don't need to write the code myself. I understand that JQuery is a good Javascript library, does it have such functionality?

+5
source share
4 answers

The jQuery user interface does this for you. Create a table with bodies and tags. Then set some id for tbody and use jquery ui:

$( "#table_tbody" ).sortable();
$( "#table_tbody" ).disableSelection();

Here is what you need, I edited the example in the link, as in Bob’s answer, but for tables: Example of a table AND viewing the code: view of the code

+6
source

, , jQuery

+1

javascript, , .

:

0