![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 207 Pomógł: 0 Dołączył: 7.09.2010 Ostrzeżenie: (0%) ![]() ![]() |
Witam.Otóż stworzyłem sobie diva o id "test".I próbuje zmienić jemu klasę za pomocą:
var tas = document.getElementById("test"); tas.className='podswietlone'; i nie udaje mi się.Jak to zrobić? Proszę o pomoc ponieważ jestem początkujący |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 207 Pomógł: 0 Dołączył: 7.09.2010 Ostrzeżenie: (0%) ![]() ![]() |
nie działa mi :-(
mam tak: var tas = document.getElementById("test"); //pobieram diva o id test tas.setAttribute('class', 'podswietlone'); Ten post edytował szypi1989 26.01.2011, 15:29:45 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 9.10.2025 - 08:34 |