You need to sign in to do that
Don't have an account?
ssoftware
Changing outputtext value from javascript
Hi All,
I am trying to update the outputText value from javascript in the following code but it is not working. Can someone let me know what could be going wrong?
The current output is:
xyz
Thanks
Success Software
<apex:page>
<apex:outputText id="theText" value="xyz"/>
<script>
var tText = document.getElementById('{!$Component.theText}');
tText.value = 'Hello';
</script>
</apex:page>
Try this :
You need to set the innerHTML for the text.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
All Answers
Try this :
You need to set the innerHTML for the text.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Thank you or your quick reply. It works great!!
I appreciate your help.
That solved my problem too! Thanks