Drop target is text area--how do I place the cursor?

7 views
Skip to first unread message

newbo

unread,
Nov 18, 2009, 1:17:42 PM11/18/09
to jQuery UI Development
Hi all,

I'm a jQuery newbie and am trying to drag and drop between a list and
a textarea. Ideally, I want to be able to drag the text in the list
selection to the text in the textarea. So it should perform an insert
into the value of the text area on the drop.

Has anyone done this before and have something I can look at? Or,
anyone have any ideas on how to do this? I've got the draggable part
and the droppable, it's just putting it actually into the text of the
textarea where I've dropped it (i.e. detecting where the cursor is in
the drop in the textarea) that is the problem.

Thanks in advance for help!
newbo
Reply all
Reply to author
Forward
0 new messages