Edit this page

filter Selector

Selects child elements that are draggable if a widget is attached to a container.


<div id="container">
  <div class="draggable"></div>
  <div class="static"></div>
  <div class="static"></div>
  <div class="static"></div>
  <div class="draggable"></div>
    filter: ".draggable",
    hint: function(element) {
      return element.clone();
  .draggable, .static {
    width: 50px;
    height: 50px;
    border: 2px solid green;
    margin: 5px;
  .draggable { background-color: orange; }
  .static{ background-color: purple; }
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article