Hi Sandeep, Below visualforce code should do what you want.
<apex:page id="a">
<script>
function fm(){
var name = document.getElementById("a:b:c:input").value;
document.getElementById("a:b:c:output").innerHTML = "The typed value is "+name;
}
</script>
<apex:form id="b">
<apex:pageBlock id="c">
<apex:inputText id="input" onchange="fm();" /><br/><br/>
<apex:outputText id="output"></apex:outputText>
</apex:pageBlock>
</apex:form>
</apex:page>
Appreciate your feedback to the answer, if it works.
Thanks, Sunil.
1 answer