I want to show some JavaScript array values in another document Input Boxes. Previously, I was using:
document.getElementByID('....').value = ....
Now I want to know how to replace the ‘document’ with another page.
Edited:
My page opens two tables side-by-side. First table contains controls and the second contains and IFrame and inside that frame is enclosed a data-grid. When the user clicks on a row in the grid, results are fetched and I want to show in the controls of table1.
You can use the context of the jQuery method ie the
$(..., context)to do this.This sets the value of
#someElementin the main document, to the value of#someOtherElementin the iframe. Code is supposed to be run from within the iframe, because that’s where your button handling is most likely to be.To go the other way you could use: