How do I update DOM after setting value to a Field?

How do I update DOM after setting value to a Field?

Hi,

I'm developing one application that have two iframes. These iframes are ARS forms. So, I need to transfer information from one to the other one and after that, call one save method of the ARS form. (Ps: both have the same src attribute, in other words, the same form).

Ex:
var vl1 = $("iframe1").contents().find("field1").val();
$("iframe2").contents().find("field1").val(vl1);

It's displaying the information correctly, but when I call the save method, this information that I transfered is lost. There is a way to force DOM update? Am I did something wrong?

PS2: I used Firebug and the value of the field is not setted.

Thanks for any help.