Experts,
I wrote a small piece of experiment code as follows:
I know it does not work. Could someone show me the correct way to implement it?
I wrote a small piece of experiment code as follows:
Code:
<html>
<head>
<script type="text/javascript">//<![CDATA[
function verifyQty() {
var val = document.getElementById("qtyID").value;
alert('val = ' + val);
document.getElementById("myID").value;
return true;
}
</script>
</head>
<body>
<form method="post" action="#" enctype="multipart/form-data" name="msf">
<label> Enter somthing: </label>
<input name="qty" onkeyup="return verifyQty();" id="qtyID">
</input>
<div id='myID'></div>[COLOR=blue] <!-- I want to display the value in this row.-->[/color]
</form>
</body></html>
I know it does not work. Could someone show me the correct way to implement it?