Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6136893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:39:33+00:00 2026-05-23T17:39:33+00:00

I have done drag and drop work using with jquery plug-in, Jquery: $(document).ready(function() {

  • 0

I have done drag and drop work using with jquery plug-in,
Jquery:

    $(document).ready(function() {
    $(".list").draggable({helper: 'clone'});
    $(".drop1").droppable({
        accept: '.list',
        hoverClass: 'dropareahover',
        drop: function(ev, ui){
         var targetId = $(this).attr("id");
         var allTargets = $("#" + targetId, ".tble");
         $("td#" + targetId).each(function() {

            $(this).append(ui.draggable.text());
            alert(ui.draggable.text())          
            });
        }
 });      
})

Html:

<div class="draggable">
<ul>
<li class="list" id="1">Teacher1</li>
<li class="list" id="2">Teacher2</li>
<li class="list" id="3">Teacher3</li>
<li class="list" id="4">Teacher4</li>
</ul>
</div>
<div class="drop">
<table class="tble">
<tr>
<td class="drop1 br" id="aa">&nbsp;</td>
<td class="drop1 br" id="ab">&nbsp;</td>
<td class="drop1 br" id="ac">&nbsp;</td>
<td class="drop1 br" id="ad">&nbsp;</td>
</tr>
<tr>
<td class="drop1 br" id="aa">&nbsp;</td>
<td class="drop1 br" id="ab">&nbsp;</td>
<td class="drop1 br" id="ac">&nbsp;</td>
<td class="drop1 br" id="ad">&nbsp;</td>
</tr>
</div>

Css:

.draggable {
width:200px;
height:200px;
border:solid 1px #ccc;
}
.dropareahover {
            background-color:#EFD2A4;
            border-color:#DFA853;
 }
.draggable ul {
margin:0px;
padding:0px;
}
.draggable ul li {
list-style-type:none;
}
.drop {
width:200px;
height:200px;
margin:10px 0px 0px 0px;
border:solid 1px #ccc;
}
.drop1 {
border:solid 1px #CCCCCC;
width:100px;
}
.drop ul {
margin:0px;
padding:0px;
}
.drop ul li {
list-style-type:none;
}
.tble{padding:0px 10px 0px 10px}

I want to drop the the teacher1 into multiple td.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:39:34+00:00Added an answer on May 23, 2026 at 5:39 pm
    $(document).ready(function() {
        $(".list").draggable({helper: 'clone'});
        $(".drop1").droppable({
            accept: '.list',
            hoverClass: 'dropareahover',
            drop: function(ev, ui){
             var targetId = $(this).attr("id");
             var allTargets = $("#" + targetId, ".tble");
             allTargets.append(ui.draggable.html());
            }
     });      
    });
    

    http://jsfiddle.net/1stein/tEWQg/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have done drag and drop using with jquery. here i have issue that
To handle Drag-n-Drop have done following, -(void)InitMyOutlineView{ - - - - - - -
What I have done so far, using PyQt classes: all_Addresses = QNetworkInterface.allAddresses() #list-of-QHostAddress for
I have done jQuery and Ajax, but I am not able to get the
I could have sworn i have done this somewhere - im using 2.0 right
I have an NSTableView which I wish to allow users to drag-and-drop video files
On my CMS I have a list of thumbnails (Sortable). The thumbnails work great
I have done my second complete Outlook 2003 Plug-in. What I want to know
I have done this using javascript for the edit bug page, where I used
I currently have a Rails Apps that lets users drag and drop certain elements

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.