Выбрать сестринский элемент
Вот сам
<div id="1" class="main"> <div class="name">Иванов Семен Семеныч</div> <span class="profil"><a href="#">Profil</a></span> <span class="informationen"><a href="#">Informationen</a></span> <span class="Anfrage"><a href="#">(Termin) Anfrage senden</a></span> <span class="Loschen"><a href="#">Loschen</a></span> <span class="Preis">Preis/Tag</span> <span class="Bewertunden">Bewertunden</span> <div class="informationen_text">2323</div> <div>Photo</div> </div> и вот функция
$(document).ready(function(){
$(".main").hover(function()
{
$(this).css("background","red");
$(this).children(".informationen").hover(function(){
$(this).css("border","1px solid white");
$(this).("span").next(".informationen_text").css("border","4px solid black");
$(this).next(".informationen_text").hover(function()
{ $(this).slideDown();}, function () {$(this).slideUp();});
}, function() {
$(this).next(".informationen_text").slideUp();
}
);
}, function()
{
$(this).css("background","white");
})
});
Хочу чтобы при наведении на блок informationen появлялся informationen_text никак не могу селектор подобрать, пробывал и next и eq почему-то не работает |
$(".informationen").hover(function(){
$(this).parent().find('.informationen_text').blah-blah-blah;
});
|
| Часовой пояс GMT +3, время: 07:41. |