Grow your CSS skills. Land your dream job.

Problem with cloning a element using jquery ui

  • # October 9, 2012 at 8:28 pm

    Guys, I really don´t know what I´m doing wrong in this code. I´m playing around with drag and drop and I´m trying to clone a element but the element doesn´t clone. Here´s the code:

    $(document).ready(function(){
    $(‘#draggable’).draggable({
    helper: ‘clone’
    });
    });
    I only got one div.

    # October 11, 2012 at 1:50 pm

    Check out [this demo](http://jsfiddle.net/Mottie/yzwLZ/).

    I used `mydraggable` as the class name of the div so that the clone would have the same styling.

    Make sure that jQuery, jQuery UI and jQuery UI css is loaded.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".