Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js] banalne pytanie o getElementById
fx69
post
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 8.10.2006
Skąd: świat astralny

Ostrzeżenie: (0%)
-----


Kod
function $(id) {
     return document.getElementById(id);
}

//.....

$("0").className = 'highlight';               //dziala

$(lastSel).className = 'highlight';         //nie dziala


dlaczego ? (IMG:http://forum.php.pl/style_emoticons/default/blink.gif)

Ten post edytował fx69 12.01.2007, 22:53:39
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
TAMLYN
post
Post #2





Grupa: Zarejestrowani
Postów: 49
Pomógł: 1
Dołączył: 6.01.2007
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Cytat
$(lastSel).className = 'highlight'; //nie dziala


Może cudzysłów w $("lastSel")?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.09.2025 - 21:50