This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes problem with check box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "problem with check box" Watch "problem with check box" New topic

problem with check box

santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

I got a small problem with my form,

whenever I check a check box in the form the text boxes under th div tag will be opened and shown to the user and whenever I uncheck the text box the text boxes will not be shown.this is fine upto here but whenever I check the check box and go to the next page and then come back by browser back button the check box is having checked but the div tag not showing the text boxes, what may be the problem, please help me.

santhosh<br />SCJP,SCWCD
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
Since you using back button, some browsers sometimes will try to preserv your form elements values.
If it is as simple, as open/close div according to checkbox, I would check it state in onload handler and open/close it.
I agree. Here's the link:
subject: problem with check box
Similar Threads
Problem with persisting text box values in JSP
Creating dynamic text boxes in Struts 1
Maintaining the state of checkbox in pagination
ActionForm Does Not Pick Up the Values of the Selected Check Boxes
Text formating in HTML - Text area