eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.www[jquery] css dla następnego elementu w drzewie › [jquery] css dla następnego elementu w drzewie
  • Path: news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
    From: hazet <h...@n...pl>
    Newsgroups: pl.comp.www
    Subject: [jquery] css dla następnego elementu w drzewie
    Date: Fri, 08 Apr 2011 22:09:37 +0200
    Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
    Lines: 33
    Message-ID: <innq1u$92n$1@inews.gazeta.pl>
    NNTP-Posting-Host: static-ip-77-89-75-190.promax.media.pl
    Mime-Version: 1.0
    Content-Type: text/plain; charset=ISO-8859-2; format=flowed
    Content-Transfer-Encoding: 8bit
    X-Trace: inews.gazeta.pl 1302293374 9303 77.89.75.190 (8 Apr 2011 20:09:34 GMT)
    X-Complaints-To: u...@a...pl
    NNTP-Posting-Date: Fri, 8 Apr 2011 20:09:34 +0000 (UTC)
    X-User: introw
    X-Antivirus: avast! (VPS 110408-0, 2011-04-08), Outbound message
    X-Antivirus-Status: Clean
    User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
    Xref: news-archive.icm.edu.pl pl.comp.www:398679
    [ ukryj nagłówki ]

    Witam, mam taki kod:

    $(document).ready(function () {

    $('#cat_list li').click(function () {

    //slideup or hide all the Submenu
    $('#cat_list li').children('ul').slideUp('fast');

    //remove all the "Over" class, so that the arrow reset to default
    $('#cat_list li > a').each(function () {
    if ($(this).attr('rel')!='') {
    $(this).removeClass($(this).attr('rel') + 'Over'
    );
    }
    });

    //show the selected submenu
    $(this).children('ul').slideDown('fast');
    //add "Over" class, so that the arrow pointing down
    $(this).children('a').addClass($(this).children('li a').attr('rel')
    + 'Over');

    });

    });



    Chcę aby następny element li w #cat_list miał określony styl CSS po
    kliknięciu/najechaniu na poprzedni element . Jak to zrobić ? (gdzie
    dodać kod ?)

Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj


Następne wpisy z tego wątku

Najnowsze wątki z tej grupy


Najnowsze wątki

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: