/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 <script type="text/javascript"> <!-- function showMe (it, box) { var vis = (box.checked) ? "block" : "none"; document.getElementById(it).style.display = vis; } //--> </script> <input type="checkbox" name="modtype" value="value1" onclick="showMe('div1', this)" />
URL: http://www.dynamicdrive.com/forums/showthread.php?t=27245
Comments
                    Subscribe to comments
                
                