• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retain the selected checkbox after form load?

 
prabhu pandurangan
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Members,

Im having some bunch of check boxes and im selecting few in that and after form loads i can get the value of the selected check box, but the selected one is seen unselected after form loads, im not sure what im doing wrong..... I need the selected check box to be selected after form loads...

Please help me in this...........

Looking forward for your reply...

Regards,
Prabhu.
[ July 24, 2008: Message edited by: Bear Bibeault ]
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please clarify to me, what is mean by 'form load' , is it mean that when page load or when you submit the form !

and post your <form> code and action/servlet who processing it !
 
prabhu pandurangan
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sagar,

Great to meet you here.

Sorry it is page load(when i click the submit button ... struts action )
And i could not post my code as it is huge, but my requirement is, im having some check box and im selecting some check box in it and after page load or page submit i have to show the selected check box again using javascript function.

Please reply me if you are not clear with my reply...

Regards,
Prabhu.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As was posted in the other topic on this issue, your JSP needs to set the following attribute:



on the checkboxes that are to be checked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic