Friday, October 31, 2008

[jQuery] Re: Is there a way to update an element while you're dragging it?

Try looking at the 'drag' option of draggable, it provides a 'Function
that gets called when the mouse is moved during the dragging.'
something like:
$(".item").draggable({
drag(function()
$(this).text('new text');
)
});
I've not tested, but this certainly seems to offer the answer.

HTH
M


On Oct 31, 4:48 am, tecmo <tecm...@sbcglobal.net> wrote:
> i'm using the sortables and dragging around div containers with text
> boxes.  I change the value of the text boxes while dragging, but the
> changed values don't appear on the item you're dragging.  Only when
> you drop the item do the changes appear on the dragged item.  Is there
> a way to refresh the dragged item while dragging?

No comments: