Demo of appendTo option of Selectable using JQuery

  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
testing
Tutorial Selectable

Full Code

<html>
<head>
<title></title>
</head>



<script src='https://code.jquery.com/jquery-3.1.1.min.js'></script>
<script src='https://code.jquery.com/ui/1.12.1/jquery-ui.min.js'></script>
<link href='https://code.jquery.com/ui/1.12.1/themes/cupertino/jquery-ui.css' rel='stylesheet'>

<script>
$(document).ready(function() {
$( "#my_selectable" ).selectable({
  appendTo: "#my_elem"
});
})
</script>
</body>
</html>