[Solved] jquery change element while dragging


the solution is to customize the option helper like this:

<div id='A' class="x">HELLO</div>

$(document).ready(function()
{


 $("#A").draggable({
            revert: "invalid",
            helper: function(){

                 return "<div id='A' class="x">X</div>";

            }
        });


});

solved jquery change element while dragging