![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 56 Pomógł: 0 Dołączył: 18.01.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
mam kod <table id="1"> <tr id="2"> <td id="3" class="klikam">Wartość Aby pobrać id z td robie: $(document).on("click touchstart", "td.klikam", function (){ alert($(this).attr("id")); -> zwraca 3 // wszystko super Czy wywołując click po td.klikam jestem woogóle wstanie pobrać id z table i tr? Łysy 2005 |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 268 Pomógł: 254 Dołączył: 11.06.2009 Skąd: Świętochłowice Ostrzeżenie: (0%) ![]() ![]() |
Hm… A próbowałeś z $.fn.parent?
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 06:11 |