Okay so I was wondering if there is a way for me to make something that when I hover over the div, it will show a hidden div. I am using twitter bootstrap and here is my div that I want to do this with.
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" integrity="sha384-aUGj/X2zp5rLCbBxumKTCw2Z50WgIr1vs/PFN4praOTvYXWlVyh2UtNUU0KAUhAX" crossorigin="anonymous">
<div class="jumbotron text-center">
<h2>This is the title of the first info</h2>
<h5>Hover to see info</h5>
</div>
2
Answers
If you’re using bootstrap you can use a popover for this:
http://getbootstrap.com/javascript/#popovers
Otherwise you can use jQuery to do a generic hide/show:
Pretty straightforward with CSS selectors: