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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:06:48+00:00 2026-06-07T06:06:48+00:00

I am trying to make a basic captcha module for jQuery. I have a

  • 0

I am trying to make a basic captcha module for jQuery. I have a decent start on it, but for some reason .children() doesn’t seem to work. See it here: http://jsfiddle.net/pTbeW/
I currently have this:

$(this).children('.captchain-start').hide();
$(this).children('.captchain-show').show();

If I change it to

$('.captchain-start').hide();
$('.captchain-show').show();

it works perfectly. But this solution is less than ideal, because it wouldn’t allow two instances of this captcha to be on the same page. I suspect it has to do with the html being set by query, but I’m not sure how. I’m far from a javascript and jQuery expert, but this seemed like a relatively easy thing to do. What am I missing? Do I have tired eyes from looking at it so long? Any help would be appreciated.

  • 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-07T06:06:48+00:00Added an answer on June 7, 2026 at 6:06 am

    You should use $(this).nextAll() instead of $(this).children() because the elements you want to hide and show are not children of the a element, but siblings.

    See http://api.jquery.com/nextAll/

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

Sidebar

Related Questions

I'm trying to make a basic (Mario style) game but my sprite(plumber) doesn't appear,
Hey guys I'm trying to make a basic calculator (polish style) but can't figure
I've been trying to make a basic XOR header file for use in some
I am trying to make a program which does a very basic calculation, but
I am trying to make my own website and only know some basic HTML,
I am trying to make LDAP queries via Visual Basic. I don't have administrator
I am trying to make a basic java console based menu system. I have
Hey, I'm trying to make a basic hockey style game. I have the basic
I'm trying to make a very basic image creator using PySide. But I'm having
I do not know the basic in depth ...but I am trying to make

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.