I’m trying to add a draggable element to my page, using the draggable jquery ui plugin ( http://jqueryui.com/demos/draggable/ ). At the moment I have this:
$("#makeMeDraggable").draggable({ axis: "y"});
I already tried:
$("#makeMeDraggable").draggable({ axis: "y", limit: {top: 10, bottom: 550}});
What I need is only to allow drag vertically – but only upwards (Disallowing dragging downwards).
try this code:
And here is a working example: (tested in Chrome and Safari)
http://jsfiddle.net/jameszaghini/s4vfX/