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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:56:06+00:00 2026-05-31T11:56:06+00:00

The spring checkbox tag does not have attribute called ‘checked’ because checked or unchecked

  • 0

The spring checkbox tag does not have attribute called ‘checked’ because checked or unchecked in spring is supposed to be set based on the value of the element in the underlying model. This is good…but how can we do this:
There are 2 spring checkboxes . On checking one, i want to write a javascript that checks the other.
Without a checked property, how can i use javascript to accomplish the task?

  • 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-31T11:56:07+00:00Added an answer on May 31, 2026 at 11:56 am

    The JSP tags are executed at server-side, and generate HTML. JavaSCript is executed at client-side, in the browser, and manipulates the HTML DOM.

    The HTML checkboxes generated by the Spring tags are no different than all other checkboxes, and of course have a checked attribute. And you may change it using JavaScript. At client-side, you don’t care whether the HTML is static, has been generated by Spring, PHP or whatever. HTML is HTML.

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

Sidebar

Related Questions

Using Spring 2.5 tag library, I have an Integer value in a command form
I need to show a checkbox or radio button checked or unchecked based on
I have a jsp and I create a spring checkbox like this: <form:checkbox path=someList
I am receiving long string of checked html checkbox values (Request.Form[mylist] return Value1,Value2,Value3....) on
I have two methods that basically converts underlying checkboxes' text or tag as CSV
I have set the enctype to: multipart/form-data yet whenever I submit this form, the
I have a spring controller with a request mapping as follows @RequestMapping(/downloadSelected) public void
I have a pretty standard project with Spring Security. I have a login form
I've set up a CRUD web application with Spring Roo and Spring MVC. My
I have an Activity (not a ListActivity, although I should probably convert my code

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.