I am new to Jquery.. I want use bounce effect in my application..I have seen a sample code here.It works there,But when copied and saved in my system its not working. Its giving JS error: Object does not support method / property 'effect'.
Any ideas? Here is my code,
<!DOCTYPE>
<html>
<head>
<title>Bounce Effect</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("#button").click(function(){
$("#Target").effect( "bounce", {times:3}, 300 );
});
});
</script>
<style>
p {
background-color:#bca;
width:200px;
border:1px solid green;
}
div{ width:100px;
height:100px;
background:red;
}
</style>
</head>
<body>
<p>Click the button</p>
<button id="button"> Bounce </button>
<div id="Target" class="target" >
</div>
</body>
</html>