1

I need to change font color of original element, after a copy of it being dragged. How should I do that?

jQuery("#tools-container .fieldset-item").draggable({
            revert: "invalid",
            helper: "clone", 
            cursor: "move",
            connectToSortable: ".fieldset-content .sortable",
            stop: function(event,ui) {
            // change helper css   
            }
        }  );

1 Answer 1

2

You would use the css function.

For example:

$(this).css("font-color", "#ff0000");

Reference: http://api.jquery.com/css/

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.