0

I'm currently working on a small "dress-up" type feature for a friend's website, but have run into a logic issue.

The items that you may use to dress your avatar must be bought. Bought items are loaded on screen for users to click (as an image) and when clicked should create a jqueryui draggable inside a div. The problem I've run into, is I can't figure out how to make it create that exact image inside the div.

I guess what I'm looking for is a way to recreate the image clicked inside the div as a draggable. Anyone have suggestions?

0

1 Answer 1

1

Pseudo-code:

image.click(function() {
    div.append($(this).clone());
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.