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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:24:14+00:00 2026-06-06T23:24:14+00:00

I have a group of checkboxes and a toggle button to check/uncheck al checkboxes

  • 0

I have a group of checkboxes and a toggle button to check/uncheck al checkboxes within this group. The function associated with the button puts the value associated with each check box in another table. When the button is clicked, the function works fine, but the checkboxes do not display the check sign even when the button is clicked. Here is the code:

function selRemChecks(aDivId,buttonId){
    var myDiv = dojo.byId(aDivId).getElementsByTagName("tr");
    for (j=0;j<myDiv.length;j++){
        myDiv[j].childNodes[3].childNodes[0].firstChild.checked=dojo.byId(buttonId).checked;
    }
    if (dojo.byId(buttonId).checked==true){
        dijit.byId(buttonId).set("label", "Clear group");
    }
    else if (dojo.byId(buttonId).checked==false){
        dijit.byId(buttonId).set("label", "Select group");
    }
}

Please suggest me a solution.

I have added my HTML code here:

<div data-dojo-type="dijit.form.Form" id="group1AForm" name="group1AForm">
<div dojoType="dijit.TitlePane" id="group1A" title="Population projection" open="false">
<table id="popIndTableA">
<tr id="testing">
<td id="indCBRA">Crude Birth Rate</td>
<td id="testing2"><input data-dojo-type="dijit.form.CheckBox" class="check1A" id="checkCBRA" name="checkCBRA" /></td>
<td id="infoCBRA"><img id="imgCBRA" src="Images/help_icon2.png"  width="16px" onClick="" /></td>
</tr>
<tr>
<td id="indTestA1">Test 1</td>
<td><input data-dojo-type="dijit.form.CheckBox" class="check1A" id="checkTestA1" name="checkTestA1" /></td>
<td id="infoTestA1"><img id="imgTestA1" src="Images/help_icon2.png"  width="16px" onClick="" /></td>
</tr>
<tr>
<td id="indTestA2">Test 2</td>                
<td><input data-dojo-type="dijit.form.CheckBox" class="check1A" id="checkTestA2" name="checkTestA2" /></td>
<td id="infoTestA2"><img id="imgTestA2" src="Images/help_icon2.png"  width="16px" onClick="" /></td>
</tr>
</table>
</div>
<div dojo-data-type="dijit.form.Form" id="selectGrp1A" name="selectGrp1A">
<button dojoType="dijit.form.ToggleButton" iconClass="dijitCheckBoxIcon" id="selGrp1A" onclick="selRemChecks('group1A',this.id); ">Select group </button>
</div>
</div>
  • 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-06T23:24:17+00:00Added an answer on June 6, 2026 at 11:24 pm

    I’ll try this:
    http://www.shiningstar.net/articles/articles/javascript/checkboxes.asp

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

Sidebar

Related Questions

I have 4 group of checkboxes, in which i am grouping all this 4
I am using jQuery 1.4.3. I have a group of checkboxes like this: <input
I have a group of checkboxes that each have their own name, so they
I have group checkboxes and I like if this group have behaviour like radiobuttons
I have a group of checkboxes in a div and I use a check
I have a group of 7 checkboxes as name=restriction[] and value that I have
I have a dropdown list with a few options and a group of checkboxes
I have a form that has a group of 13 checkboxes that together make
I have group of check boxes named as modules[]. I want to access them
If I have groups of checkboxes like so: <input type=checkbox namecheckboxes1 value=#value1> <input type=checkbox

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.