![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 19 Pomógł: 0 Dołączył: 7.09.2017 Ostrzeżenie: (0%) ![]() ![]() |
Witam, drukuję sobie listę select z tablicy
Kod <select id="lBetonID"> <option>- wybierz -</option></select> i Kod //Lista dla betonu var zmsel1 = document.getElementById("lBetonID"); var zmopt1 = concrete[0].slice(2); for(var i = 0; i < zmopt1.length; i++) { var opt1 = zmopt1[i]; var el1 = document.createElement("option"); el1.textContent = opt1; el1.value = opt1; zmsel1.appendChild(el1); } Mam problem z ustawieniem wartości wejściowej selected, można gdzieś ją wkomponować? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 08:17 |