Hi,
Its something stupidly simple but for some reason i cant find a straight forward cross browser solution.
I've got 2 sets of address fields and i want a tick box that when the user clicks it populates the 2nd lot of boxes with the values in the first.
I had it working in I.E ok using the following;
But it doesn't seem to be working in chrome.....im guessing it must need referencing in a different way.
Does anyone have a straight forward cross browser method for setting various input values.
Thanks
Its something stupidly simple but for some reason i cant find a straight forward cross browser solution.
I've got 2 sets of address fields and i want a tick box that when the user clicks it populates the 2nd lot of boxes with the values in the first.
I had it working in I.E ok using the following;
Code:
document.getElementById("inputid2").value=document.getElementById("inputid1").value;
Does anyone have a straight forward cross browser method for setting various input values.
Thanks
Comment