View Full Version : jQuery Draggable elements in JQUERY
10-30-2009, 01:01 PM
Hi i am generating dynamically a list of books. Each book should be draggable to a certain place in a page. I gave the same id for all the books by keepin each book reference inside a div element. But only the first element is draggable . Please help me in making all the books in a list to be draggable .
I am using JQUERY. Please help me out....
10-30-2009, 02:54 PM
If you need help with code, it's useful to actually post some code.
03-11-2012, 11:42 AM
You might try giving all the elements you want draggable the same class instead of the same id. The way ids work, there should only ever be one element on a page with a given id. A lot of jQuery functions will return an array when there are more than one element with the same id but I've run across some that won't.
Some code would help, yes.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.