Witam. Robię stronkę zespolu i wlasnie wzialem sie za dzial dyskografia. W tym dziale wyswietlaja mi sie albumy razem z tytulem, chcialbym zeby po kliknieciu na okladke badz tytul wyswietlaly mi sie tytuly, ktore sa domyslnie ukryte. Ale kod mi nie dziala. Porsze o pomoc
Oto kod
<table id="leftPanel">
<tr class="obraz" id="obraz1">
<td><img src="images/covers/Led.jpg" style="width:80px; height:80px;" alt="brak"/></td>
<td>Led Zeppelin I</td>
</tr>
<tr class="opis" id="opis1">
<td>1. Good Times Bad Times<br />
2. Babe Im Gonna Leave You<br />
3. You Shook Me<br />
4. Dazed And Confused<br />
5. Your Time Is Gonna Come<br />
6. Black Mountain Side<br />
7. Communication Breakdown<br />
8. I Cant Quit You Baby<br />
9. How Many More Times</td>
</tr>
<tr class="obraz">
<td><img src="images/covers/LedII.jpg" style="width:80px; height:80px;" alt="brak"/></td>
<td>Led Zeppelin I</td>
</tr>
<tr class="opis" id="opis2">
<td>
1. Whole Lotta Love<br />
2. What Is And What Should Never Be<br />
3. The Lemon Song<br />
4. Thank You<br />
5. Heartbreaker<br />
6. Living Loving Maid (Shes Just A Woman)<br />
7. Ramble On<br />
8. Moby Dick<br />
9. Bring It On Home</td>
</tr>
</table>
jquery:
$(function() {
$('.opis').hide();
$('#leftPanel .obraz').click(function() {
var ID = $(this).attr('id');
$(ID).next().fadeIn();
});
});