![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 36 Pomógł: 0 Dołączył: 20.09.2014 Ostrzeżenie: (0%) ![]() ![]() |
Witam, mam taki problem, chciałbym odczytać wartość id diva wpisaną wcześniej przez innerHtml.
przyciskając przycisk alert wyrzuca wartość "undefined"... Kod <script> function kup (s) { document.getElementById("nn").innerHTML=s; } function odczyt() { alert(document.getElementById("nn").value); } </script> <img src="bg.png" onclick="kup('jgjg')"> <div id="nn"></div> <input type="button" value="przycisk" onclick="odczyt()"> |
|
|
![]() ![]() |
![]() |
Aktualny czas: 18.09.2025 - 08:49 |