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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:03:42+00:00 2026-05-24T03:03:42+00:00

I have following code: <div class=question> <span class=text_area> <textarea name=text1 id=response1 rows=3 cols=50/> </span>

  • 0

I have following code:

<div class="question">
 <span class="text_area>
  <textarea name="text1" id="response1" rows="3" cols="50"/>
 </span>
<div>
<div class="questionRespond">
 <input type="checkbox" name="chk_1"/>
  <span>
   <input class="questionbutton" id=send1Button/>
  </span>
</div>
<div class="question">
 <span class="text_area>
  <textarea name="text1" id="response1" rows="3" cols="50"/>
 </span>
<div>
<div class="questionRespond">
 <input type="checkbox" name="chk_2"/>
  <span>
   <input class="questionbutton" id=send1Button/>
  </span>
</div>
<div class="question">
 <span class="text_area>
  <textarea name="text2" id="response3" rows="3" cols="50"/>
 </span>
<div>
<div class="questionRespond">
 <input type="checkbox" name="chk_3"/>
  <span>
   <input class="questionbutton" id=send3Button/>
  </span>
</div>

Basically it is texarea and below that there is a checkbox and button. I want the checkbox and button to only show when user click on textarea. Can this be done in jQuery?

  • 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-24T03:03:43+00:00Added an answer on May 24, 2026 at 3:03 am

    First of all make sure that the elements which should be hidden are initially hidden since nobody did yet click the textarea, obviously. Then you’d want to attach a click handler to all of the textareas with show the checkboxes and buttons.

    // Initially hide controls (should be better done without JavaScript)
    jQuery('.questionRespond').hide();
    
    // Handle the clicks
    jQuery('.question textarea').click(function(){
        // this points to the textarea, look for the question div first, then the following response controls
        var respondControls = jQuery(this).closest('.question').next();
        respondControls.show();
    });
    

    Remember to fix your HTML since you’re repeating identifiers and omitting quotes.

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

Sidebar

Related Questions

I have the following markup <div class=question> <h2>Title 1</h2> <div class=answer>content 1</div> </div> <div
I have the following simple code, where I double click a div (with class
I have a question div which looks like so: <div class=Q> <div id=Q1><span>1. </span>Which
I have the following code in my file to load a div with HTML
Let's say you have the following chunk of code: <div id=container> <someelement>This is any
I have an HTML along the following lines: <div class=hiddenClass> // this implies display:none
I have the following ul setup: <div id=sidebar> <ul id=themenu class=sf-menu sf-vertical> <li> <a
I have a bunch of elements like the following: <div class=droppableP id=s-NSW style=width:78px; height:63px;
I have the following code: <div id=elm0 data-color=color data-size=size data-more=more>something</div> <div id=elm1>This element must
I have the following form: <fieldset id=upload-form> <ul> <li> <div class=radio-list clearfix> <ul> <li><label

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.