Bootstrap Show and Hide Content

Bootstrap Show and hide content – Bootstrap .show and .hide class used for Showing and Hiding the content.

Copy and Paste below code and see output.

Example:

<!DOCTYPE html>
<html>
<head>
<meta charset=“utf-8”>

<meta name=“viewport” content=“width=device-width, initial-scale=1”>

<!–- Bootstrap css file –>
<link rel=“stylesheet” href=“https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css”>
<link rel=“stylesheet” href=“https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css”>
</head>

<body>
<div class=“container”>

<div class=“show”>
Welcome to Coding Tag – Learn HTML, CSS, Bootstrap, PHP, JS and many more..
</div>
<div class=“hidden”>
Welcome to Coding Tag – Learn HTML, CSS, Bootstrap, PHP, JS and many more..
</div>

</div>

<!–- Bootstrap js file –>
<script src=“https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script>
<script src=“https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js”></script>

</body>

</html>



Leave a Reply

avatar
  Subscribe  
Notify of