Solved

JQuery Sortable; need to be able to drag and drop rows within a table

Posted on 2015-02-11
3
266 Views
Last Modified: 2015-02-12
Let me start by telling you that I am a complete newbie so please be patient with me.  
I am trying to build a table which would allow the users to sort the table results using drag/drop.  I am using PHP to connect to a SQL Server database.  It has been recommended that I use J-Query Sortable found at this website:  JQuery-Sortable

About 3/4 way through the above website, there is an example for sorting rows within a table.  But I can not figure out how to make it work.  If someone could please provide me with step by step instructions on what to do I would really appreciate it.  

Because I am so new to coding / php / JQuery, I need to use the same JQuery the other coders on the team are using or be able to demonstrate why something else would be better for the team to use.  So Ideally, I'd like to get this one to work.
sjstest3.html
0
Comment
Question by:SueJStevens
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 44

Assisted Solution

by:Rainer Jeschor
Rainer Jeschor earned 500 total points
ID: 40605023
Hi,
as far as I can see, the initial selector is wrong.
It should be
$('#sortable').sortable({

Open in new window

Here a sample based on your code:
http://jsfiddle.net/EE_RainerJ/mdkbqgm7/
HTH
Rainer
0
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 40605025
And: in your HTML file, you miss the script reference to jQuery :-)
You just have jQuery UI reference.
0
 

Author Closing Comment

by:SueJStevens
ID: 40606550
Thank you.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses how to create an extensible mechanism for linked drop downs.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question