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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:47:30+00:00 2026-05-23T12:47:30+00:00

Sorry, but I can only show this problem on a live sandbox site. if

  • 0

Sorry, but I can only show this problem on a live sandbox site. if you go to prupt.com, after about 8-10 seconds a drop down menu will appear in the middle of the screen. If you click “confirm” next to the dropdown menu, the background image will change and the boxes will disappear and reappear later on the next page.

All that works fine.

However, when I add this code below to make the boxes on the second page draggable and droppable, and then visit the site again, once I click “Confirm” on the first page, it just reloads the same first page without changing the background image etc.

This code below, in itself, is functional, as I tested it on this fiddle http://jsfiddle.net/gq6En/65/

So can anyone explain why, if I add this code, it alters the functionality once you click the confirm button on the first page?

$(function(){
    $("#cloud1, #cloud2, #cloud3, #cloud4").draggable();
    $("#chair1, #chair2, #chair3, #chair4").droppable({
        accept: "#cloud1, #cloud2, #cloud3, #cloud4",
        activeClass: "ui-state-hover",
        hoverClass: "ui-state-active",
        drop: function (event, ui) {
            $(this)
                .addClass ("ui-state-highlight")
                .find ("p")
                .html("dropped");
            $("#topnav").css({'background':'pink'});
         }

      });
});

Update, when I put the code in this document ready (as suggested by @kwicher) and try again, the process to change to the second page starts, but then it reverts back to the first page.

$(document).ready(function($) {   
$("#cloud1, #cloud2, #cloud3, #cloud4").draggable();
        $("#chair1, #chair2, #chair3, #chair4").droppable({
            accept: "#cloud1, #cloud2, #cloud3, #cloud4",
            activeClass: "ui-state-hover",
            hoverClass: "ui-state-active",
            drop: function (event, ui) {
                $(this)
                    .addClass ("ui-state-highlight")
                    .find ("p")
                    .html("dropped");
                $("#topnav").css({'background':'pink'});
             }

          });

}); 
  • 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-23T12:47:30+00:00Added an answer on May 23, 2026 at 12:47 pm

    Try to execute the code on $(document).ready

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

Sidebar

Related Questions

I'm sorry, but this keyword doesn't mean anything to me... Can someone give me
Sorry if the title is poorly descriptive, but I can't do better right now
Sorry about the vague subject but I couldn't think what to put. Here's my
Sorry for this not being a real question, but Sometime back i remember seeing
Ok sorry this might seem like a dumb question but I cannot figure this
Sorry if this sounds like a really stupid question, but I need to make
I'm sure this has been answered somewhere, already, but I just can't find it:
I'm sorry for ambiguous title, but this question is hard for me to put
sorry but I do not have the actual code with me, but I will
Sorry for the simple question but I feel like there's a smarter way to

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.