How to remove an element from opener window viewsource using javascript
- by spj
Hi
Step 1
I've two screens one is parent and the other one is child.
On click of a button in the parent window the child popup will open.
Step 2
On click of a button in child i'm displaying the html(viewsource) of parent window in a textbox(.net) and holding in a hidden variable hdnSource too.
Step 3
I've 4 checkboxes in the child window.
If the checkbox is not checked, then that part of html should be removed.
eg: cbxPersonal, cbxProfessional
if cbxProfessional is unchecked I should remove divProfessional from html which is in hdnSource and display in the textbox
Can anyone help me to do the 3rd part of coding.
Since the html is in the variable, I'm not able to find the div with document.getElementById