You have to code like this
var x = document.getElementById('form1:txt2').getProps().value;document.getElementById('form1:txt1').setProps({value:x});
good luck.
camel8160 wrote:
i have the same problem, and follow the instructions and it functions if i try the following:
var x = "hello";
document.getElementById('form1:txt1').setProps({value:x});
but i have problems if i use:
var x = document.getElementById('form1:txt2');
document.getElementById('form1:txt1').setProps({value:x});
it shows me in txt1 : "[object HTMLSpanElement]"
thanks
my mail is camel8160@hotmail.com