<head>  
            <script src="https://code.jquery.com/jquery-1.10.2.js"></script>  
        </head>  
      
        <body>  
            <button>Toggle</button>  
            <div>Hi Developer</div>  
            <script>  
                jQuery("button").click(function()  
                {  
                    jQuery("div").toggle();  
                });  
            </script>  
        </body>
Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.