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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:10:07+00:00 2026-06-15T02:10:07+00:00

I have webform with several standard fields, however 1 field I want to be

  • 0

I have webform with several standard fields, however 1 field I want to be either shrunk or greyed out or hidden until the field above it…a Radio button selection box with Yes or No options, is selected Yes…or even a check box would work…does not matter

<tr>
 <td style="width: 143px"><b>Add Notes:
 </b></td>
<td><input type="radio" name="cmtad" value=Yes>Yes
    <input type="radio" name="cmtad" value=No>No
</td>
</tr>

<tr>
 <td style="width: 143px" class="style10"><b>Notes:
 </b></td>
<td >
<textarea input name=info rows="5" cols="32"  style="color: black;background-color:#FFFF66"></textarea></td>
</tr>

I want the Notes text area to appear only if Yes is clicked in the Radio button above it the Add Notes.
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-15T02:10:08+00:00Added an answer on June 15, 2026 at 2:10 am

    You can do this with javascript or jquery.

    Below is an example with jquery.

    $(document).ready(function() {
       $('input[name="cmtad"][value="Yes"]').click(function() {
          $(this).parent().parent().next().show();
       }
       $('input[name="cmtad"][value="No"]').click(function() {
          $(this).parent().parent().next().hide();
       }
    });
    

    The above code should hide the tr immediately following the tr in which the radio buttons are contained. The parent() calls allow jquery to bubble up the DOM to select the next tr. This is a sample code, edit as required.

    PS,
    Would a checkbox not be a better option for this?

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

Sidebar

Related Questions

I have a loginview in my webform that has several Items. I want to
I have a webform and i want to detect if F5 button was pressed
I have a webform with quite a few fields (between 15 to 40, based
I use several user controls, along with standard ASP.Net controls, to build my webform.
I have read several topics (like this one: Database field containing HTML display raw
I have a folder structure tree i want to reuse on several pages i
I have several asp:panels on a webform page which is used together with an
I have several text boxes in an ASP.NET Web Form. I want to ensure
I have several DropDown controls on a Web Form which are filled using AJAX
I have a webform, and a custom validation function. Which both work fine. But

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.