ale zobrazi sa len mySelect a nie aj to co vyberem
nieco ako toto lenze so select
Kód:
<script type="text/javascript">
function notEmpty(){
var myTextField = document.getElementById('myText');
if(myTextField.value != "")
//alert("You entered: " + myTextField.value)
document.getElementById('text').innerHTML = myTextField.value;
}
</script>
<div id="text"></div>
<input type='text' id='myText' />
<input type='button' onclick='notEmpty()' value='Form Checker' />