|
|
Question : CSS display inline problem
|
|
I have a bit of code like this:
stylesheet.css
.LINKSOFF{display: none; font: 12px Verdana, Geneva, Arial, Helvetica, sans-serif; } .LINKSON{display: inline; font: 12px Verdana, Geneva, Arial, Helvetica, sans-serif; }
default.aspx.cs
if (this.value=='this_test'){document.getElementById('div_txt_this').className='LINKSON';}else{document.getElementById('div_txt_this').className='LINKSOFF');
the code works fine, the form is then submited and thats ok 2.
What the problem is if the user presses back on the browser the divs are hidden again.
Thanks
|
Answer : CSS display inline problem
|
|
One possible solution is to use cookies to hold state information. This could then be retrieved by code on the page, even when/if a back button is used.
|
|
|
|
|