I have written the following code to load a popup(List B NewForm.aspx) when a List A NewForm.aspx is submitted. The popup has a div.
var dialogOptions = SP.UI.$create_DialogOptions(); dialogOptions.url = "someURL"; dialogOptions.width = 750; dialogOptions.height = 500; dialogOptions.dialogReturnValueCallback = Function.createDelegate( null, CloseCallback); SP.UI.ModalDialog.showModalDialog(dialogOptions);
In the List B NewForm.aspx, I have added script to access the div. But by following code part div cannot be accessed. Any suggestions please.