Hide div on click in Jquery
How do I make an hide div on click in jquery?
Can be used for hiding a div / section on mouse click. Hide div on click and it will not display till next refresh/ reload of page.. What is a hide div on click in jquery? How do you make a hide div on click in jquery? This script and codes were developed by Digital Avinash on 12 October 2022, Wednesday.
Hide div on click in Jquery - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>hide div on click in Jquery</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h3>Jquery Hide</h3>
<div class="ex"> <button class="hide">Hide this div</button> <p>This div will be hide on button click with slow time duration</p>
</div> <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Hide div on click in Jquery - Script Codes CSS Codes
div.ex { background-color: #e5eecc; padding: 7px; border: dotted 2px #c3c3c3;
}
body{background:royalblue}
Hide div on click in Jquery - Script Codes JS Codes
//<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
$(document).ready(function(){ $(".ex .hide").click(function(){ $(this).parents(".ex").hide("slow"); });
});
Developer | Digital Avinash |
Username | digitalavinash |
Uploaded | October 12, 2022 |
Rating | 3 |
Size | 1,914 Kb |
Views | 18,216 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Bootstrap signup form | 1,977 Kb |
Beautiful calendar icon | 2,010 Kb |
3 column html and css div, ready code | 1,720 Kb |
Price table - bootstrap | 2,619 Kb |
Bootstrap drag switch | 2,154 Kb |
Combine css margin top- Shorting code in css | 2,076 Kb |
Footer made in bootstrap | 8,121 Kb |
Padding div with minus margin, css tricks | 1,693 Kb |
Blog post snippet | 1,715 Kb |
Fix div after scroll, in Jquery | 1,805 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
A Pen by Taylor Vowell | Taylorvowell | 5,962 Kb |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 Kb |
Force Counter | Kenlauguico | 2,732 Kb |
Subscription Newsletter - Before inlining | Bradstrong | 7,526 Kb |
Scroll to top button | DominicFrancois | 3,743 Kb |
Portfolio Layout Flex | Lahvjal | 3,489 Kb |
A Pen by Markku Lehmonen | SharpDal | 7,804 Kb |
CSS Parent Selector | Tomhodgins | 2,143 Kb |
Siema - add pagination to prototype | Pawelgrzybek | 2,575 Kb |
Print element on a page | Mrs_snow | 2,081 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!