![]() |
Pobranie indeksu kliknietego elementu - Wersja do druku +- Forum Webmastera, HTML, CSS, PHP, MySQL, Hosting, Domeny - Forum dla Webmasterów (https://www.webmastertalk.pl) +-- Dział: Technologie internetowe - tworzenie stron WWW (https://www.webmastertalk.pl/forum-technologie-internetowe-tworzenie-stron-www) +--- Dział: xHTML, CSS, JavaScript (https://www.webmastertalk.pl/forum-xhtml-css-javascript) +--- Wątek: Pobranie indeksu kliknietego elementu (/thread-pobranie-indeksu-kliknietego-elementu) |
Pobranie indeksu kliknietego elementu - dahel - 18-01-2012 Załóżmy, że do tablicy pobrałem kilka odnośników. Jak w czystym JS pobrać indeks klikniętego odnośnika? RE: Pobranie indeksu kliknietego elementu - Kartofelek - 18-01-2012 Kod: function kliknieto() { tutaj też masz inne techniki: http://forums.htmlhelp.com/index.php?showtopic=746 Ogólnie sporo jest na ten temat w google -> javascript return index element RE: Pobranie indeksu kliknietego elementu - dahel - 18-01-2012 Dzięki. |