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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:06:51+00:00 2026-06-03T01:06:51+00:00

Sorry if the title is not accurate – I couldn’t figure out how to

  • 0

Sorry if the title is not accurate – I couldn’t figure out how to word it.

I have multiple widgets with the same class <div class="widget"></div> – each widget has a title, and content, structured like this:

<div class="widget">
    <div class="widget-title">Title</div>
    <div class="widget-content">Content Here</div>
</div>

The “widget-content” is hidden, and when you click on the widget-title, the content appears, and a class is applied to the widget-title, changing it to “widget-title open”. This part works find, and the widget-content opens too.

The problem is, its opening the widget content on ALL widgets. It should only open the widget-content in the specific widget where the title was clicked, not ALL of them. I am not sure what the proper syntax is to use so it only opens the widget-content of the specific widget the user click the title on.

Here is the code I have so far:

$('.widget').find('.widget-title').click(function() {
  $('.widget-content').show('slow', function() {
    // Animation complete.
  });
  $('.widget').find('.widget-title').addClass("open");
});

Could someone please provide a working example? 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-06-03T01:06:53+00:00Added an answer on June 3, 2026 at 1:06 am
    $('.widget .widget-title').click(function() {
        $(this)
            .addClass("open")
            .parent().find('.widget-content').show('slow', function() {
                // Animation complete.
            });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry the title may not be very clear. Basically I have a wrapper for
Sorry if my title is not clear, I'm not sure how to word this.
Sorry if the title is not clear enough, I have <a> elements with the
Sorry for the title, not easy to phrase it correctly. I have a table
Sorry for question title. I can not find a suitable title. I have UITableView
Sorry if the title isn't accurate, I am not 100% sure it describes the
Sorry i could not find a proper title to this question. I have generated
Sorry the title is a bit crappy, I couldn't quite word it properly. Edit:
Didn't know how to word the title sorry. Basically I have a comments system,
Sorry for the title, perhaps it's not very clear. I have some SQL queries

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.