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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:11:18+00:00 2026-06-11T16:11:18+00:00

I have a data entry form on my site which contains multiple checkboxes, two

  • 0

I have a data entry form on my site which contains multiple checkboxes, two radio buttons and a text field. I want to make the text field un-editable if one of my radio buttons is selected. With an error message if the customer tries to type in it. I’m new to Jquery and web coding so am having trouble finding relevant answers.

The radio buttons and text area are as follows

    <form method="post" class="required-form" action="php/addcompanyengine.php">
  <ul class="forms">


    <p class="Region">Please select the type of listing you desire</p>
    <ol>
        <li><label class="checkbox">Bronze Listing</label>
        <input type="radio" name="listing[]" id="listing" value="Bronze" checked></li>
        </ol>
        <ol>
        <li><label class="checkbox">Silver Listing</label>
        <input type="radio" name="listing[]" id="listing" value="Silver"></li>
    </ol>



      <label for="Description">Description:<br /><br />
            (Silver listings only <br /> <br />
            Maximum 400 characters)</label>
            <textarea name="Description" cols="20" id="Description" maxlength="400" ></textarea>

Basically if the customer leaves the radio button on Bronze (the default) I want the text field unavailable, if they select silver I’d like it available for them to type into.

Many thanks, it’s much 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-11T16:11:19+00:00Added an answer on June 11, 2026 at 4:11 pm

    Assuming you already have jQuery loaded (note the class attribute instead of ID):

    <ol>
        <li><label class="checkbox">Bronze Listing</label>
        <input type="radio" name="listing[]" class="listing" value="Bronze" checked></li>
        </ol>
        <ol>
        <li><label class="checkbox">Silver Listing</label>
        <input type="radio" name="listing[]" class="listing" value="Silver"></li>
    </ol>
    
    <script type="text/javascript">
        $(document).ready(function() {
            $('.listing').change({
                if ($(this).val() == 'Bronze') {
                    $('#Description').attr('readonly','readonly');
                } else {
                    $('#Description').removeAttr('readonly');
                }
            });
        });
    </script>
    

    You can see it in action here: http://jsfiddle.net/AZ7wJ/

    If you want the textarea originally non-editable as well, you can add the readonly="readonly" attribute to it.

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

Sidebar

Related Questions

I have a pretty big data entry form which has many text fields ,
I have a custom data entry form which is bound to a ViewModel (VM).
I have a data entry form where the first field the user wants to
I have a data entry/editing form with two combo boxes (Name and Group). Each
I am working on app which have data entry form which have Some fields
I have a WPF MVVM app that contains a data entry form with several
I'm developing an ASP.NET form for data-entry. Users have to select a client from
I have a form that is used for data entry, and on one form
I have a data entry form that has remote validation set up to check
I have a data entry form with many textbox's and some dropdowns for the

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.