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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:41:06+00:00 2026-06-18T02:41:06+00:00

So, I have two problems: Why is this });//]]> at the top of the

  • 0

So, I have two problems:

  1. Why is this });//]]> at the top of the page in jsfiddle.

  2. Second, the real issue, How can I change the drop zone of the jQuery sortable object to reflect where the mouse is. So what I mean is, It should not matter where you drag the sortable from (extreme top left corner or bottom right) but instead only rely on if the mouse is over tab1 or tab2 to be dropped.

Currently, the center of the sortable has to be over tab1 or tab2.

var $tab_items = $("ul:first li", $tabs).droppable({
    accept: ".connectedSortable li",
    hoverClass: "ui-state-hover",
    drop: function (event, ui) {
        var $item = $(this);
        var $list = $($item.find("a").attr("href"))
            .find(".connectedSortable");

        ui.draggable.hide("slow", function () {
            $tabs.tabs("select", $tab_items.index($item));
            $(this).appendTo($list).show("slow");
        });
    }
});

I am fairly new to JavaScript and jQuery. I think that drop: function( event, ui ) { is definitely where i should be looking. Any insight into this would be greatly appreciated.

http://jsfiddle.net/justinmvail/LARnD/

  • 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-18T02:41:07+00:00Added an answer on June 18, 2026 at 2:41 am
    $('selector').droppable({ tolerance: "pointer", ...
    

    See this fiddle

    You’ll want to set the tolerance option for draggable.

    The script tags in the fiddle caused the strange characters.

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

Sidebar

Related Questions

Can someone explain to me how I can fix this problem. I have two
I have two tab buttons at the top of this webpage I'm in the
I have two jquery scripts on one page that both target on-site links via
I have two pages, the parent and from this page I am using: window.open('OrderDetailsFull.aspx?ObjectID='
I have two CSS float problems on this website ( http://melisayavas.com/web ) that I
I Have two problem in this Case : I want to pass a JSON
My problem is this: I have two threads, my UI thread, and a worker
So i'm having this problem. I have two tables (Oracle), one is called Destination
In this problem, I have three (identically-structured) lists. Two have all numbers and the
I have had this problem w/ two seperate WYSWYG editors in my rails application

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.