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

  • Home
  • SEARCH
  • 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 6008887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:53:32+00:00 2026-05-23T01:53:32+00:00

I have an unusual need. I have five input checkboxes that look like this:

  • 0

I have an unusual need. I have five input checkboxes that look like this:

<input class="abc" id="Response[0]" name="Response[0]" type="checkbox" />
<input class="abc" id="Response[1]" name="Response[1]" type="checkbox" />
<input class="abc" id="Response[2]" name="Response[2]" type="checkbox" />
<input class="abc" id="Response[3]" name="Response[3]" type="checkbox" />

I have a button that the user can click but I want that disabled until the user has clicked in one of the check boxes.

Is there some way that I can sense the user having clicked in a checkbox and then change the state of the button from disabled=”disabled” if this has happened. I already use jQuery on the page so I am hoping for a simple jQuery solution.

  • 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-23T01:53:33+00:00Added an answer on May 23, 2026 at 1:53 am

    Yes, this isn’t hard to do with change. I’m going to assume that you don’t mind if more than one of the checkboxes is checked, as long as at least one is…

    $('input.abc').change(function() {
        if ($('input.abc:checked').length) {
            $('#yourButton').prop('disabled', false);
        } else {
            $('#yourButton').prop('disabled', true);
        }
    });
    

    Note that it would be a significant improvement if you could give the input elements a class, or if you could specify a common parent element that had no other input children. The attribute-starts-with selector name^="value" is fairly slow.

    Edit: changed to a class selector.

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

Sidebar

Related Questions

Unusual situation. I have a client, let's call them BuyNow. They would like for
[This is a bit of an unusual problem, I know...] What I need is
I have an unusual problem. I have a function, operation in this function can
I have an unusual situation to model in a MS SQL Server database: the
I have a bit of an unusual question. I'm running an old DOS game
Have you managed to get Aptana Studio debugging to work? I tried following this,
I have an unusual situation - I have an embedded video streaming device with
I have an idea for a pretty unusual alarm clock fir the iPhone. But
What unusual, unexpected consequences have occurred in terms of performance, memory, etc when switching
I have a problem with some numpy stuff. I need a numpy array to

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.