Mam taki problem, że w przeglądarce IE7 ten kod nie działa do końca poprawnie... wyświetla mi pole wyboru, ale bez wartości... w innych przeglądarkach działa bez zarzutów:) proszę o pomoc... nie wiem, czy po prostu czegoś nie dopisałem.
<?php function weryfikuj() { if( document.getElementById('a').value != "" && liczba == "501" && document.getElementById('a').value.length == "9") { var oP = document.getElementById("typ"); oP.style.display = "block"; var newSelect = document.createElement("select"); var newOption1 = document.createElement("option"); var newOption2 = document.createElement("option"); var newOption3 = document.createElement("option"); newSelect.name = "siec0"; newSelect.id = "siec0"; newOption1.value= "20"; newOption1.text = "20 zł"; newOption2.value= "50"; newOption2.text = "50 zł"; newOption3.value= "100"; newOption3.text = "100 zł"; document.getElementById("f1").appendChild(newSelect); newSelect.appendChild(newOption1); newSelect.appendChild(newOption2); newSelect.appendChild(newOption3); } } ?>