Hi, I got a few input images and want them to be dragable. I am creating a gui for clients to drag and drop elements around to create their own page.
any ideas how to do this? I did add the drag effect to these but no input would be draggable even though the class is added to the element. Any ideas?
1 Replies - 9873 Views - Last Post: 12 April 2011 - 06:16 AM
#1
Is it possible for Jquery to drag and drop a input ?
Posted 10 April 2011 - 08:32 PM
Replies To: Is it possible for Jquery to drag and drop a input ?
#2
Re: Is it possible for Jquery to drag and drop a input ?
Posted 12 April 2011 - 06:16 AM
Place all your items in DIV's then make their position absolute.
And then use a code similar to this to move the elements around.
And then use a code similar to this to move the elements around.
$("#element").mousedown(function(event){
$(this).css('left', event.pageX);
$(this).css('top', event.pageY);
});
Page 1 of 1

New Topic/Question
Reply


MultiQuote


|