
30.03.2009, 15:59
|
|
Познающий
Регистрация: 29.05.2008
Сообщений: 53
Провел на форуме: 66389
Репутация:
67
|
|
<html>
<head></head>
<body>
<script>
function f1()
{
var s = document.getElementById("select");
var t = document.getElementById("a1");
if(s.selectedIndex)
t.style.display = 'inline';
else
t.style.display = 'none';
}
</script>
<select id="select" onchange = f1()>
<option>Первый вариант</option>
<option>Второй вариант</option>
</select>
<input type="text" style="display:none" id="a1">
</body>
</html>
Последний раз редактировалось VAran; 30.03.2009 в 16:05..
|
|
|