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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:06:09+00:00 2026-05-26T20:06:09+00:00

I am creating a question type for a survey. I am using the below

  • 0

I am creating a question type for a survey.

I am using the below jsfiddle

http://jsfiddle.net/hP3jc/

What i need is a counter or something alike that will let me know how many of the red blocks are being dropped onto the bottom gray blocks.

eg. Strongly Agree = 2 (when 2 red are dropped onto it)
Agree = 1 (when 1 red block is dropped onto it) etc.

Thanks!

  • 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-26T20:06:10+00:00Added an answer on May 26, 2026 at 8:06 pm

    When you drop a red box, can you get the class of the grey box?

    what i’m thinking is that you can add the class of the grey to the class of the red and then simply do a count of all reds with a particular grey in its class.

    so class=”red1″ and after drop class=”red1 grey2″.

    when you pick up a red that has “grey” in it’s class, then you need to remove the grey class names.

    i know i didn’t reference any code but i was just thinking of the concept rather than actual code. I can have a go if you wish though.

    so the process i think would be as follows.

    setup:
    Grey box class has extra class like class=”GreyBox Grey1″ and class=”GreyBox Grey2″

    on drop:

    • Get second class of the grey box you dropped on.
    • Add that class to the Red box you just dropped.
    • jQuery to get count $('.Grey1').length

    on pick up off grey

    • Get class of red box
    • remove all classes that begin with “Grey”
    • re count the reds with grey class names.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a related question I asked about creating a generic container. Using polymorphic templates
I'm creating a self-help FAQ type application and one of the requirements is that
So I need to make new survey forms that are huge and I'm getting
I'm creating a web-application which will be taking survey-type data. Users are presented with
I'm creating hashed passwords using salted sha1 in PHP. My question is: In MySQL
I am creating an online FAQ type system using php and mySQL. The following
I am creating a crossword puzzle-type app, and am using the following code to
My main question is what fields are required for creating a PO using the
I'm creating a customer survey using a jQuery UI dialog. I'm loading an external
When creating a process in VB6 (related to this question:), I'm using the following

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.