StuckInTheMiddle
Programmer
Hi All,
I have a HMTL page with a javascript function attached to a button called show/hide.
On the click event of this button I set the property of a DIV (style.display to 'block' or 'none') to make it visible or not, which works great.
Except when the user uses the submit button on the form when the page reloads it doesnt remember the DIV property that i changed dynamically and it reverts to being hidden again.
Is there a way for me to save the state of my DIV so that on the reload it remains visible if that's what the user chose?
I'm sure there's a way ASP or .NET, but I don't have access to use only client side scripting.
Any assistance appreciated, thanks
A,
"If you can stay calm, while all around you is chaos...then you probably haven't completely understood the seriousness of the situation.
I have a HMTL page with a javascript function attached to a button called show/hide.
On the click event of this button I set the property of a DIV (style.display to 'block' or 'none') to make it visible or not, which works great.
Except when the user uses the submit button on the form when the page reloads it doesnt remember the DIV property that i changed dynamically and it reverts to being hidden again.
Is there a way for me to save the state of my DIV so that on the reload it remains visible if that's what the user chose?
I'm sure there's a way ASP or .NET, but I don't have access to use only client side scripting.
Any assistance appreciated, thanks
A,
"If you can stay calm, while all around you is chaos...then you probably haven't completely understood the seriousness of the situation.