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

  • SEARCH
  • Home
  • 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 6802923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:16:54+00:00 2026-05-26T19:16:54+00:00

this is my code for doing drag and drop functionality. i use jquery pugins

  • 0

this is my code for doing drag and drop functionality. i use jquery pugins core js 1.5 and jquery ui-1.7.1

 $('#middle li').draggable({

    helper: function () {
        var selected = $('#middle input:checked').parents('li');
        if (selected.length == 0) {
            selected = $(this);
        }
        var container = $('<div/>').attr('id', 'middle');
        container.append(selected.clone());
        return container;
    }
});
$("#left div").droppable({
    drop: function (event, ui) {
        //$(this) = Folder Name where item is being dropped
        foldername = $(this).text();
        var fileid = $(ui.helper.children()).text();     
    }
});

now middle is my div where i am draging li element and drop in left div using that code i am getting text of both drag item and drop item……

Problem:-
1. this functionality working only when page refresh why?
2. how i get text of multiple item when i am drag and drop multiple item also count how many item drag and drop at a time

  • 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-26T19:16:55+00:00Added an answer on May 26, 2026 at 7:16 pm

    I solved my problem.

    Issue is my jquery load after jqueryUI so drag&droup not working.

    So any way load jqueryUi after jquery 1.5 or any other version

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

Sidebar

Related Questions

I have this code for doing an ajax request to a webservice: var MyCode
I have some code doing this : var changes = document.getElementsByName(from); for (var c=0;
This code produces a mess... What am I doing wrong? cell=$(<td>); if(normal.exam_type==Exam_Boolean) { var
I'm writing code like this, doing a little quick and dirty timing: var sw
Trying an example piece of code for Scriptaculous for doing some drag and drop.
I am doing a little app with JQuery, using drag-n-drop for the interface. Basically,
I need a quick hand figuring out what this code is doing, and how
What am I doing wrong in this HTML code: <html> <head> </head> <body> <div
Is there a side effect in doing this: C code: struct foo { int
Am I doing something wrong if I need code like this in a Controller?

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.