[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2015-02-11
3
Medium Priority
?
271 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 2000 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

650 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