Trying to set the value of one form to be the same as the other
I am trying to set the value of form with name:
to be equal to that of:
But although everything seems to be firing OK, the value of 2 is not changing to that of 1.
Here are the related codes;
function set_equal ($f, $ix)
var url_a = 'url2ix_' + $ix;
var url_b = 'url2ix_' + ($ix + 1);
alert('b = ' + url_b);
f.url_b.value = f.url_a.value;
being called by:
<input type="button" name="copy" Value="Copy" OnClick="set_equal(this.form, <?php echo $i; ?>)" class="form_button">
what is the problem?