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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:53:43+00:00 2026-05-26T08:53:43+00:00

I am using Struts1.3, and in this Jsp page dynamically generate check boxes depends

  • 0

I am using Struts1.3, and in this Jsp page dynamically generate check boxes depends on the data available in Database. my code which is generate check boxes is as follow

<table width="850" border="0" align="left" cellpadding="2" cellspacing="0">
   <tr>
    <td width="100" align="center" bgcolor="#F3F3F3"><label>
    <html:checkbox name="ExporterForm" value="<%=authlist.get(i).getAuthorityid()%>" property="exportauthority" styleId="checkbox99"  />
    </label></td>
    <td align="center" class="text_exp" ><%=authlist.get(i).getAuthorityname()%></td>
   </tr>
 </table>

I have one more check Box(selectAll), and query is, I want to mark checked all while selection of selectAll CheckBox.

and my code is for checked all check box is given below but it’s select only one and need to select all please show me the path to achieve it.

function selectAllAuthorites()
{
 var selectAll=document.getElementById("checkbox101")
 if(selectAll.checked==true)
 {
     document.getElementById("checkbox99").checked=true;
 }
}
  • 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-26T08:53:44+00:00Added an answer on May 26, 2026 at 8:53 am

    You can use getElementsByTagName method of Javascript.

    This code might be of your help!

    function checkAll() 
    {
        //alert("Check all the checkboxes..."); 
        var allRows = document.getElementsByTagName("input");
        for (var i=0; i < allRows.length; i++) {
            if (allRows[i].type == 'checkbox') 
            {
                allRows[i].checked = true;
            }
        }
    
    }
    

    You can call this function from your html checkbox.

    Edit:

    these links might help you.

    javascript-check-one-check-all-checkbox

    Javascript Function to Check or Uncheck all Checkboxes

    Another Link

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

Sidebar

Related Questions

I am using Struts1.3, I have Jsp page which is showing the list of
I am trying to display data from my database to a Jsp page using
I'm having this jsp page. <form method=post action=addBook.do?reqCode=submit enctype=multipart/form-data> <input type=file name=myfile /> </form>
I am using Struts 2. I have a JSP. It has this code: <span
I have this line of code in my JSP. (I'm using struts 1.3) <html:form
Using struts2 with jsp with standard struts tag libraries. I'm trying to dynamically hide
using Struts2, I successfully load an external URL inside a jsp page using an
I'm Using Struts2 in jsp page i have iterator values for checkbox. how to
How can I expose a Java bean to a JSP page by using struts?
I have written a jsp redirect in my jsp page like this <s:if test=#session.Doctor

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.