This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
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.
posted 12 years ago
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.