Helo,
I am begginer and need help, here is my code. This works only for first div_"some". How do same with other divs_"some".
Thanks for help.
I am begginer and need help, here is my code. This works only for first div_"some". How do same with other divs_"some".
Thanks for help.
Code:
<script>
$(document).ready(function(){
$('#some').hover(
function() {$('#bottom-line').stop().animate({marginTop:'70px',height:'30px'},300);},
function() {$('#bottom-line').stop().animate({marginTop:'100px',height:'0px'},300);}
);
});
</script>
<style>
#some{
width:200px;
height:100px;
float:left;
margin:5px;
background-color:#f6f6f6;
}
#bottom-line{
width:200px;
height:0;
margin-top:100px;
background-color:red;
}
</style>
<div id="some">
<div id="bottom-line"></div>
</div>
<div id="some">
<div id="bottom-line"></div>
</div>
<div id="some">
<div id="bottom-line"></div>
</div>
. . .