MasterRenny Posted May 11, 2010 Share Posted May 11, 2010 Hide a content in a div tag or a table field when you tick a check box, and then for it to remember which ones where checked so when they return they can go right back to where they was? Quote Link to comment Share on other sites More sharing options...
ignace Posted May 11, 2010 Share Posted May 11, 2010 Sure, just store it in a cookie through JS. Quote Link to comment Share on other sites More sharing options...
MasterRenny Posted May 11, 2010 Author Share Posted May 11, 2010 Do you know how i could go about this? Quote Link to comment Share on other sites More sharing options...
Cory94bailly Posted May 12, 2010 Share Posted May 12, 2010 Here's my script: http://cory.110mb.com/generator.php Put this in the 'head': <script type="text/javascript"> <!-- function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //--> </script> Here's your checkbox: <input type="checkbox" name="mlgvariant" id="mlgvariant" onclick="toggle_visibility('custom_mapset');" /> Then I just made a 'span' with the name inside the toggle_visibility javascript function: <span name="custom_mapset" id="custom_mapset" style="display: block"> <label for="mapset">Custom Mapset:</label> <select name="mapset" style="width: 220"> -----SNIP----- </span> I'm sure you could easily tweak that to work for what you need. If you need any further explanation to my codes, go ahead and ask Quote Link to comment Share on other sites More sharing options...
MasterRenny Posted May 12, 2010 Author Share Posted May 12, 2010 But it doesnt remember it was clicked? therefore if reloaded it appears again =] Quote Link to comment Share on other sites More sharing options...
ignace Posted May 12, 2010 Share Posted May 12, 2010 But it doesnt remember it was clicked? therefore if reloaded it appears again =] He did mention: I'm sure you could easily tweak that to work for what you need. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.