Code:
<script language="javascript">
function sel(){
var txt = document.frm.x.value;
document.getElementById('msg').innerHTML = txt;
}
function sel1(){
var txt = document.frm.y.value;
document.getElementById('msg1').innerHTML = txt;
}
</script>
<div id="msg1" name="msg1"></div>
<form name="frm">
<input type="text" name="x" onselect="sel()" />
<input type="text" name="y" onchange="sel1()" />
</form>
<div id="msg" name="msg"></div>
Comments
Post a Comment