placeholder Function | String | jQuery

Provides a way for customization of the sortable item placeholder. If a function is supplied, it receives one argument - the draggable element's jQuery object. If placeholder function is not provided the widget will clone dragged item, remove its ID attribute, set its visibility to hidden and use it as a placeholder.

**Important: The placeholder element is appended to the Sortable widget container.

Example - Sortable with custom placeholder

<ul id="sortable">

        placeholder: function(element) {
            return element.clone().css({
                "opacity": 0.3,
                "border": "1px dashed #000000"
In this article