How to remove an element from opener window viewsource using javascript
        Posted  
        
            by spj
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by spj
        
        
        
        Published on 2010-04-22T06:41:28Z
        Indexed on 
            2010/04/22
            6:43 UTC
        
        
        Read the original article
        Hit count: 290
        
JavaScript
|html
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
© Stack Overflow or respective owner