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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:15:55+00:00 2026-06-17T09:15:55+00:00

I saw this on jsfiddle and I wanted to know how I would alter

  • 0

I saw this on jsfiddle and I wanted to know how I would alter it so that if and only if 45 is checked the rest are disabled, if if 45 is unselected then the rest are enabled. I should be able to do all this with out submitting the form.

The example javascript on jsfiddle:

$(function(){
    $(".rambo").change(function(){
        $(this).siblings().attr("disabled", $(this).is(":checked"));  
    });
});
  • 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-17T09:15:56+00:00Added an answer on June 17, 2026 at 9:15 am

    Just add proper ids and select on that

    HTML:

    <input type="checkbox" id="cb1" class="rambo" value='1' /> 45 
    <input type="checkbox" id="cb2" class="rambo" value='2' /> 56 
    <input type="checkbox" id="cb3" class="rambo" value='3' /> 56
    

    JS:

    $(function(){
        $("#cb1").change(function(){
            $(this).siblings().attr("disabled", $(this).is(":checked"));  
        });
    });
    

    JSFiddle

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

Sidebar

Related Questions

I saw this solution http://jsfiddle.net/gronky/GnTDJ/ and it works. That is, when you input 25,
I saw this C# using statement in a code example: using StringFormat=System.Drawing.StringFormat; What's that
I saw this come up in the Properties window after adding and then deleting
I know this question has been asked many times, but I never saw a
I know that this has been asked a million times before, but nothing that
I saw this thread but wanted to confirm: How to convert NSNumber objects for
I saw _=$=+[],++_+''+$ that evaluates to 10 in this question Why does ++[[]][+[]]+[+[]] return
I was on jsfiddle.net recently and I saw this as a configuration option. This
I saw this as an example on MDN and didn't understand why this was
I saw this question and it motivated me to look again (without success) at

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.