![]() ![]() |
Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 15.04.2014 Ostrzeżenie: (0%)
|
Witam serdecznie.
Jestem nowy na tym forum. Chciałbym się nauczyć programować w języku js oraz php. Mam pewien problem ze swoim kodem. Wrzucam kod do podglądu: CODE <script> function agefunction() { var a = document.getElementById("age").value; for ( var a<9; a++) { document.getElementById("age").value; var ages = a+1; document.write(""+ages+""); } } </script> <input type="text" onkeyup="agefunction()"> <input type="text" id="age" value="ile masz lat?" onkeyup="agefunction()"> Chodzi o to że jak wpisze w input powiedzmy liczbe 5 to chce żeby mi się wyświetlały cyfry: 5,6,7,8,9. Chce aby to się działo dynamicznie. |
|
|
|
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 587 Pomógł: 190 Dołączył: 5.02.2011 Skąd: 64-800 Ostrzeżenie: (0%)
|
Ten post edytował _Borys_ 16.04.2014, 00:44:34 |
|
|
|
![]() ![]() |
|
Aktualny czas: 25.12.2025 - 23:38 |