| Код | <html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Новая страница 1</title> </head>
<body>
<form method="POST" action="--WEBBOT-SELF--" name="Form1" id="Tform1"> <!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" --> <p><select size="1" name="D1" id="Select1"><option value="1">1</option></select><input type="submit" value="Отправить" name="B1"><input type="reset" value="Сброс" name="B2"></p> </form>
<script> op1 = document.createElement("option"); op1.value='2'; op1.text='2';
//f1 = document.forms['Form1']; //alert(f1) //f1.D1.appendChild(op1); document.getElementById("Select1").appendChild(op1); </script>
</body>
</html>
|
|