Nie działa, dam cały kod
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script type="text/javascript">
function bar()
{
var textPara = document.getElementById('text_para');
var textInput = document.getElementById('text_input');
if (textPara && textInput)
{
alert(textInput.getAttribute("value"));
//textPara.innerHTML = textInput.getAttribute("value") ;
}
else
{
alert("coś nie działa");
}
}
</script>
</head>
<body onload="">
Lorem ipsum dolor sit amet
<form id="frm" onsubmit="" action="">
<input type="text" name="text_input" value="wartość" id="text_input" />
<input type="button" value="podmien" name="przycisk" id="ok" onclick="javascript:bar();" />
</form>
</body>
</html>
```
Przy kazdym nacisnieciu buttona "przycisk" wyswietla sie "wartość" nie zalenie co wpiszesz w formularzu.
[dopisane]
ok,jednak działa ale tylko na ie6, na ff i operze jest problem..