Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-01-2009, 06:20 PM   PM User | #1
esiason14
New Coder

 
Join Date: Jul 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
esiason14 is an unknown quantity at this point
jQuery drag and replace

I'm trying to drag and drop between lists. I have the simple drag and drop down, but I want to add something else...

I want drop a list item to another list item and replace the text or the drop zone.

For example. I have two lists:

<ul id="sortable1" class='droptrue'>
<li id="whatever 1" class="ui-state-default">whatever 1</li>
<li id="whatever 2" class="ui-state-default">whatever 2</li>
<li id="whatever 3" class="ui-state-default">whatever 3</li>
</ul>

<ul id="sortable1" class='droptrue'>
<li id="default text 1" class="ui-state-default">default text 1</li>
<li id="default text 2" class="ui-state-default">default text 2</li>
<li id="default text 3" class="ui-state-default">default text 3</li>
</ul>

so if I drag "whatever 1" to "default text 1" it would replace "default text 1" with "whatever 1"
esiason14 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:28 AM.


Advertisement
Log in to turn off these ads.