![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 332 Pomógł: 6 Dołączył: 27.11.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam mam taki kod
Kod <html> <head> <title>jquery</title> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#next_match').click(function() { $('div').next().show("slow"); }); }); </script> </head> <body> <a id="next_match" href="#">Nastepny mecz</a> / <a id="previous_match" href="#">Poprzedni mecz</a> <div>test 1</div> <div style="display: none;">test 2</div> <div style="display: none;">test 3</div> <div style="display: none;">test 4</div> <div style="display: none;">test 5</div> <div style="display: none;">test 6</div> </body> </html> I chce zrobić że po kliknięciu w Nastepny mecz pojawia się następny div a poprzedni sie chowa i wszystko fajnie ale po kliknięciu w Nastepny mecz pojawiają sie wszystkie divy a nie następny. Proszę o pomoc. Doszedłem do czegoś takiego
Ale nie wiem jak pobrać eq bieżący element Ten post edytował arzach 21.08.2011, 08:58:14 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 15.09.2025 - 05:55 |