I am trying to replicate what the other user is doing at the code below:
Jquery Show and Hide doesnt work? Something is missing and i can't figure it out
but just like her, i am also stuck because it's not working in dreamweaver. I guess i'm not doing it correctly by adding the correct wrap. can someone who knows point out or edit my script?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($)
{
$(".social").hover(function()
{
$("h1", this).hide();
$(".networks", this).fadeIn();
},
function()
{
$(".networks", this).hide();
$("h1", this).fadeIn();
});
});
</script>
<style>
.networks
{
display:none;
}
</style>
</head>
<body>
<div class="social">
<h1>Share this</h1>
<div class="networks">
<p>Twitter</p>
<p>Facebook</p>
</div>
</div>
</body>
</html>