screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Show/Hide Example</title> <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script> </head> <body> <h3>Jquery Show Hide Div onClick | Toggle Div</h3> <button id="toggleButton">Toggle Visibility</button> <div id="myDiv" class="hidden"> This is the content of the div. </div> <script> $(document).ready(function(){ $("#toggleButton").click(function(){ $("#myDiv").toggle(); }); }); </script> </body> </html>