Hi jQuery script does not add display block for all same mane divs, only for the first one.
JS
$("#sidecontrol_container").mouseenter(function(){
setTimeout( function(){
$('#packet_name').css('display','block');
},310);
$( "#sidecontrol_container" ).animate({
width:"230px"
}, 300 );
});
$("#sidecontrol_container").mouseleave(function(){
$('#packet_name').css('display','none');
$( "#sidecontrol_container" ).animate({
width:"40px"
}, 300 );
});
HTML
<div id="sc_wraper">
<div id="packet_name">1</div>
</div>
<div id="sc_wraper">
<div id="packet_name">1</div>
</div>
CSS
#packet_name{
height:40px;
width:190px;
float:right;
display:none;
}
It only adds for first div with name packet_name <div id="packet_name" style="display:block;">1</div>
HTML RESULT after mouseenter
<div id="sc_wraper">
<div id="packet_name" style="display:block;">1</div>
</div>
<div id="sc_wraper">
<div id="packet_name">1</div>
</div>