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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:59:11+00:00 2026-05-31T06:59:11+00:00

This is a pretty common issue, but I can’t figure it out. Let me

  • 0

This is a pretty common issue, but I can’t figure it out. Let me post my code first:

<div class="myDeskContentRate">
    <span class='myDeskContentStar'><img src='star.png'></span>
    <div class='myDeskContentRateCount'><span class='starCount'>1</span></div>
</div>

And my jQuery:

$('.myDeskContentStar').click(function(){
        $postId = $(this).attr('networkPostId');
        $this = $(this);
        $starCount = $this.next('.myDeskContentRateCount');

        $.post('/includes/classes/handler.php?do=networkPostStar', { postId : $postId }, 
        function(data){ $this.html(data); $starCount.nextUntil('.starCount').load('/includes/classes/handler.php?do=networkPostStarCount', { postId : $postId }); });
});

When a star is clicked it had to do the post and then the load, because it has to update the amounts of stars.

What my problem is, that I can’t select the span class=’starCount’ inside of the div class=’myDeskContentRateCount’.

I can get the class=’myDeskContentRateCount’ but that’s not what I want. Is there a way for me to get the span class=’starCount’?

Thanks in advance.

  • 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-31T06:59:13+00:00Added an answer on May 31, 2026 at 6:59 am

    This will hopefully solve your problem:

    $starCount = $this.next('.myDeskContentRateCount').find('.starCount');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this scenario, which I think must be pretty common: class Parameter {
I have a question which I think should be pretty common but I can't
This is pretty trivial, but I noticed on SO that instead of an offset
I'm pretty sure that this is the right site for this question, but feel
I am sure this a pretty common problem: I have a UITableView with quite
This is quite a common question but the solutions I found in other people
This pretty much has me defeated. On XP and earlier versions of Windows you
this pretty much is the thing. When in tinymce I press anything that is
I find this pretty confusing. When you want to rotate a view, it's going
I'm stuck with this pretty silly thing; I got a textfile like this; Hello::140.0::Bye

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.