<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hide And Show Jquery</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/simple-sidebar.css" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
<a href="#">
SHOW HIDE Jquery
</a>
</li>
<li>
<a href="#">Beranda</a>
</li>
<li>
<a href="#">Option1</a>
</li>
<li>
<a href="#">Option2</a>
</li>
</ul>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper" align="center">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1>Demo Hide And Show Di Jquery</h1>
<a href="#menu-toggle" class="btn btn-default" id="menu-toggle">Show Hide Menu</a>
<hr>
<button id="hide" class="btn btn-default">Hide</button>
<button id="show" class="btn btn-default">Show</button><hr>
<p>
<img src="https://lh3.googleusercontent.com/-G3frn6YG2FU/VcGEb9agcII/AAAAAAAAHAA/wbyfPhjO1j4FYnFSWvdIqvMxH-wp7kwsgCCo/s800-Ic42/IMG_20150804_210451.jpg" class="img-responsive">
</p>
<hr>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- Menu Toggle Script -->
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
<script>
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide(1000);
});
$("#show").click(function(){
$("p").show(1000);
});
});
</script>
</body>
</html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hide And Show Jquery</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/simple-sidebar.css" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
<a href="#">
SHOW HIDE Jquery
</a>
</li>
<li>
<a href="#">Beranda</a>
</li>
<li>
<a href="#">Option1</a>
</li>
<li>
<a href="#">Option2</a>
</li>
</ul>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper" align="center">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1>Demo Hide And Show Di Jquery</h1>
<a href="#menu-toggle" class="btn btn-default" id="menu-toggle">Show Hide Menu</a>
<hr>
<button id="hide" class="btn btn-default">Hide</button>
<button id="show" class="btn btn-default">Show</button><hr>
<p>
<img src="https://lh3.googleusercontent.com/-G3frn6YG2FU/VcGEb9agcII/AAAAAAAAHAA/wbyfPhjO1j4FYnFSWvdIqvMxH-wp7kwsgCCo/s800-Ic42/IMG_20150804_210451.jpg" class="img-responsive">
</p>
<hr>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- Menu Toggle Script -->
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
<script>
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide(1000);
});
$("#show").click(function(){
$("p").show(1000);
});
});
</script>
</body>
</html>
Comments
Post a Comment