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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:45:58+00:00 2026-05-25T20:45:58+00:00

What I want is when checkbox1 is selected both checkbox labelled 1 will get

  • 0

What I want is when checkbox1 is selected both checkbox labelled 1 will get selected and background will be removed

here is the fiddle

for eg if i select checkbox1 it should select both checkbox labelled checkbox1

  • 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-25T20:45:58+00:00Added an answer on May 25, 2026 at 8:45 pm

    The problem is that searching for ID $(“#somethin”) is not possible to select more than one element. IF you search for class, then your example works.. well, with some minor changes 🙂

    $(document).ready(function() {
      $('input[type=checkbox]').change(function(){
            var pos;
            pos = this.id;
    
           // global hook - unblock UI when ajax request completes
            $(document).ajaxStop($.unblockUI);
    
    
            if($(this).prop("checked")) {
                $("."+pos).parent().removeClass("highlight");
                $("."+pos).prop('checked', true)
    
                //ajax to add uni
            } else {
                //ajax to remove uni
                $("."+pos).parent().addClass("highlight");
                $("."+pos).prop('checked', false)
    
    
            }
        });
    
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I'm having some problems with jquery checkbox selected. I want to do a
I want to make a judge, if checkbox value = 2, selected. But now
I want to select multiple rows from checkbox and want to update them all
i want to select a checkbox when a button is clicked. <form action= method=post
Possible Duplicate: Delete values selected using checkbox I want to delete records that has
I want to hide and show a div element when a checkbox is selected
Basically, I want to only show these fields if checkbox is selected, if it
I want to sort the items that have been previously selected with checkboxes. If
I want to iterate over checkboxes div and determine if checkbox1,checkbox2,checkbox3 are checked //
How to grey out a checkbox? I want a checkbox to be clickable only

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.