• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp

 
rudayashanker
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got four checkbox and Select All button
Checkboxes are: e.g Rock, Classic, jazz, pop .
button : Select All.
When i hit the Select All button all the checkbox have to checked. Can any one please help me to do that in Java JSP.
Thanks
Shankar
------------------
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you want jsp to do that, it means submitting the page to the server so that jsp can process it. can't you use javascript on the client-side?
 
rudayashanker
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rudayashanker:
I got four checkbox and Select All button
Checkboxes are: e.g Rock, Classic, jazz, pop .
button : Select All.
When i hit the Select All button all the checkbox have to checked. Can any one please help me to do that in Java JSP.
Thanks
Shankar

 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rudayashanker:
I got four checkbox and Select All button
Checkboxes are: e.g Rock, Classic, jazz, pop .
button : Select All.
When i hit the Select All button all the checkbox have to checked. Can any one please help me to do that in Java JSP.
Thanks
Shankar

I agree. This is best done in Javascript. Don't try doing this on the server-side.
Kyle

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As previously mentioned, do it in JavaScript. In the click event of your checkall checkbox, do something like the following for each of the checkboxes.
checkBoxName.checked = true

Bosun
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!