container String | jQuery(default: null)

If set, the hint movement is constrained to the container boundaries.


<div id="container">
  <div id="draggable"></div>

    hint: function(element) {
      return element.clone();
    container: $("#container")
  #container {
    width: 200px;
    height: 200px;
    border: 1px dashed red;
  #draggable {
    width: 50px;
    height: 50px;
    background-color: orange;
    border: 2px solid green;
In this article
Not finding the help you need? Improve this article