Add to your form a textarea named ta1.
Code:
<textarea name = "ta1" rows = "2" cols = "14">1 2 3 4 5 6</textarea>
Then add the folllowing script code
after testDups();
Code:
var numbers = [1,2,3,4,5,6];
var arr = [];
arr[0] = document.myForm.one.value;
arr[1] = document.myForm.two.value;
arr[2] = document.myForm.three.value;
arr[3] = document.myForm.four.value;
arr[4] = document.myForm.five.value;
arr[5] = document.myForm.six.value;
for (var i = 0; i<numbers.length; i++) {
for (var j = 0; j<arr.length; j++) {
if (arr[j] == numbers[i]) {
numbers[i] = "";
} // remove used numbers
}
}
var noblanks = [];
for (var i =0; i<numbers.length; i++) {
if (numbers[i]){ noblanks.push(numbers[i])}
}
var joined = noblanks.join(" ");
document.myForm.ta1.value = joined;
I do hope that this is not going to be one of these things where modifications are repeatedly requested. It would be a lot easier to take these requirements into account at the outset. And I get the impression that you have sufficient expertise to make this modification yourself.