how to clone and drag an icon using jquery?

how to clone and drag an icon using jquery?

      
$( ".selector" ).draggable({ helper: "clone" });

      
// getter
var helper = $( ".selector" ).draggable( "option", "helper" );
// setter
$( ".selector" ).draggable( "option", "helper", "clone" );




I found these codes,but where to add this?