Is there anyway to restrict where draggable element can be dragged. For example in the testatble address I have added a red container, I do not want the draggable element to be able to dragged out of it's container. Is this possible ?
Many thanks
U need to use
snappable: true, option with
bounds: {
left:0,
top: 0,
right:el.width(), //200
bottom:el.height() //200
} for example
Thanks a lot really appreciate it thats what i was looking for :)
Most helpful comment
U need to use
snappable: true,option withbounds: { left:0, top: 0, right:el.width(), //200 bottom:el.height() //200 }for examplehttps://codepen.io/Vronn/pen/eYpEJvq