Click to See Complete Forum and Search --> : clone method prorety


gunjan
03-21-2003, 03:02 AM
hello
the problem i m facing is :
i have cloned a text box
but after cloning it if i change the value of the same
i cant retrive the value
yes i can retrive the value of the cloned object
pls do hepl me
i m badly in need of this
-gunjan

khalidali63
03-21-2003, 06:31 AM
how are you getting this done?


function Process(){
var obj = document.form1.textbox1;
var copyObj = obj.cloneNode(true);
copyObj.value = "This is a clone node";
alert("parent ="+obj.value+", child = "+copyObj.value);
}


The sample above works (unless I am totally out of clue here..:p ).

Post your code here..

:D

Cheers

Khalid