![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 50 Pomógł: 0 Dołączył: 16.05.2008 Ostrzeżenie: (0%) ![]() ![]() |
witam , chce zrobic cos takiego, ze
Wpisz ile zdjęć chcesz dodać: <input type="text" name="ile" id="ile_zdjec" /> <input type="button" id="commit_js" value="zatwierdź" onclick="java script:wyswielt_file(document.aa.ile_zdjec.value)" /> i pod spodem maja mi sie wyswietlic <input type="file" /> w ilosci wpisanej wyzej.. mam cos takiego ale musze cos jeszcze dodac: function wyswielt_file(co){ var elem= document.getElementById('inputs'); for (i = 0; i < co; i++) { elem.innerHTML += '<input type="file" name="file+i"'; } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.09.2025 - 18:40 |