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 6577885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:41:51+00:00 2026-05-25T15:41:51+00:00

DROP Event Not firing in First and Last Position I am using a UL

  • 0

DROP Event Not firing in First and Last Position

I am using a UL where its LI are draggable and sortable. If i drag and drop the item in the middle then the drop event fires, but if i drop in the first or last position of the UL then the drop event is not firing. Thanks in advance.

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<link rel="stylesheet" href="Styles/themes/base/jquery.ui.all.css">
<script src="Scripts/jquery-1.6.2.js"></script>
<script src="Scripts/ui/jquery.ui.core.js"></script>
<script src="Scripts/ui/jquery.ui.widget.js"></script>
<script src="Scripts/ui/jquery.ui.accordion.js"></script>
<script src="Scripts/ui/jquery.ui.mouse.js" type="text/javascript"></script>
<script src="Scripts/ui/jquery.ui.draggable.js" type="text/javascript"></script>
<script src="Scripts/ui/jquery.ui.droppable.js" type="text/javascript"></script>
<script src="Scripts/ui/jquery.ui.sortable.js" type="text/javascript"></script>
<link href="Styles/whereabouts.css" rel="stylesheet" type="text/css" />
<script src="js/demos.js" type="text/javascript"></script>  
<style>
#draggable { width: 16em; padding: 0 1em; }
#draggable ul li { margin: 1em 0; padding: 0.5em 0; } * html #draggable ul li { height: 1%; }
#draggable ul li span.ui-icon { float: left; }
#draggable ul li span.count { font-weight: bold; }
</style>
    <script>
        $(function () {
            $(".ui-state-default").draggable();
            $(".ui-helper-reset").droppable({
                drop: function (event, ui) {
                    alert('dropped');
                }
            }).sortable();
        });
        </script>
</head>
<body>
<ul class="ui-helper-reset">
<li id="event-start" class="ui-state-default"><span class="ui-icon ui-icon-play">    </span>"start" invoked <span class="count">0</span>x</li>
<li id="event-drag" class="ui-state-default"><span class="ui-icon ui-icon-arrow-4"></span>"drag" invoked <span class="count">0</span>x</li>
<li id="event-stop" class="ui-state-default"><span class="ui-icon ui-icon-stop">
</span>"stop" invoked <span class="count">0</span>x</li>
</ul>
</body>
</html>
  • 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-25T15:41:51+00:00Added an answer on May 25, 2026 at 3:41 pm

    This may not the answer for the questions.

    Actually i moved my drop event code to stop event code of the Sorttable() and my requirement is fulfilled in my real application. Thank you all.

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

Sidebar

Related Questions

Why does this jQuery not drop the first time it is dropped? $(.drag).draggable({ revert:
$(item).droppable({ drop: function(event, ui) { console.log(triggered); } }); I try to call drop by
I am using the AJAX Cascading drop down list but want to add event
Possible Duplicate: ASP.Net: DropDownList's SelectedIndexChanged event not firing I created a new ASP.NET default
Hi guys i am working on drag and drop event in android via jquery
JSFiddle Source If you drag and drop an item from source list box to
I'm currently working on a project at work using the HTML5 Drag and Drop
I have a draggable item which if not dropped in a droppable will revert.
What I'm essentially doing is creating a list item on drop. Using the drop
Currently I am using the table Drag and Drop plugin (http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/) to achieve the

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.