IWreck86
12-30-2009, 08:44 PM
Hello,
This is not a huge problem but I was noticing that the changes I was making to a LI's class name (using document.getElementById('id').className) was being undone when the page was refreshed. Is there a way to keep the current className when the page is refreshed instead of the changes being undone?
Here's an example of my code (shorthand version):
<li id="listitem" class="" onclick="this.className='selected'">blah</li>
Thanks for the help!
This is not a huge problem but I was noticing that the changes I was making to a LI's class name (using document.getElementById('id').className) was being undone when the page was refreshed. Is there a way to keep the current className when the page is refreshed instead of the changes being undone?
Here's an example of my code (shorthand version):
<li id="listitem" class="" onclick="this.className='selected'">blah</li>
Thanks for the help!