I want to drag and drop a table row randomly in a HTML table using jQuery (not using jQuery plugins).
Do you have any suggestions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simplest first.
Do you consider jquery ui as a plugin ?
If no, then you should look for it’s sortable method
http://jqueryui.com/demos/sortable/
They also have a droppable and draggable method.
With sortable, you can quickly add sortable behaviour to your table.
Since you need to be able to mix header rows and body rows, you might try the connectWith option: