function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Siva Sankar PaluriSiva Sankar Paluri 

Hi ,I would like to design a VF page ,in which the text entered by user should display again in below text box. Can i use re render concept here.

Amit Singh 1Amit Singh 1
Hello,

Try below code.
<apex:page>
<apex:slds/>
<script>
 function setVal(){
    var a=document.getElementById('{!$Component.myform.test}').value;
    document.getElementById('{!$Component.myform.test2}').innerHTML = a;
 }
 </script>


<apex:form id="myform">
<apex:inputText id="test"  onkeyup = "setVal();"></apex:inputText>
<apex:outputText id="test2"  >
</apex:outputText>
</apex:form>
</apex:page>


Let me know if this helps :)
Thanks,
Amit Singh