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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:02:03+00:00 2026-06-13T18:02:03+00:00

I have a jQuery draggable Div and inside it I have a bootstrap dropdown

  • 0

I have a jQuery draggable Div and inside it I have a bootstrap dropdown menu, this is my HTML:

<div id="widget_clock" class="widget_common ui-widget-content ui-corner-all ui-draggable" style="z-index: 1001; left: 651px; top: 0px; ">
<div>
    <div class="btn-group" style="float:right;text-align:left">
        <a class="btn btn-large" href="#" id="btn_SetAlarm"><em class="icon-time" style="margin-top: 4px;"></em>  Set Alarm</a>
        <a class="btn btn-large dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
        <ul class="dropdown-menu" id="alarm_recent_times">
            <li class="recent_times_header nav-header" style="padding-right:20px; padding-left:20px">No Recent times</li>
        </ul>
    </div>
</div>

as you can see from the HTML, I’m talking about the .dropdown-menu ul tag.
Everything looks okay until the <div class="caret"> is being pressed and the dropdown menu is being opened (this is a bootstrapjs feature),

The bug is occurring when the DIV is being dragged again after the bootstrapjs menu opened, and the menu is staying in its place and not moving. Sometimes it gets back to the DIV and sometimes it just stands still. I can’t explain why.

PS Can I give my website address to show people my problem in action?

  • 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-06-13T18:02:05+00:00Added an answer on June 13, 2026 at 6:02 pm

    Unless you need the dropdown to stay open while dragging, you should be able to get around this problem by closing the dropdown menu on drag.

    $(".ui-draggable").draggable({
      start: function() {
        $('.ui-draggable .open').removeClass('open');
      }
    });
    

    You can also make your div not draggable when caret is clicked.

    $(".ui-draggable").draggable({
      cancel: 'a.dropdown-toggle'
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have drag and drop function with jquery. Dragging and dropping div inside this
I have a jquery ui draggable div, and the HTML contents do not behave
I have an image inside a div, like so: <div><img src= class=draggable></div> It's a
I have an element inside a div that is draggable jquery ui. And I
So I have divs like this on my page: <div class=drag></div> And this jquery
I have developed a dragable div with an image inside using jquery. The script
I have a jQuery draggable container div with a side scroll bar that should
I use draggable/droppable JQuery feature as follows div.container { height:400px; } <div class=container id=source>
I have div container and inside couple divs with class demo like <div id='container'
Possible Duplicate: jQuery UI draggable to smaller droppable I have a draggable div and

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.