Remove DIV after click on it

meCODEX

Registered Member
Joined
Jun 23, 2011
Messages
81
Reaction score
11
When an visitor enter on my page he get a popup .
How can i use java or jquery to remove that popup/div after he click on my ad that appear on popup ?

Or let's say I have and AD inside a <div>, how can i remove make that AD disappear after he click inside <div> ( inside div not on ad )


Thanks! :)
 
You can try what I found googleing:

Code:
<div id="clients-edit-wrapper">
    <div class="close-wrapper">
        <a href="#" class="close-div">Close</a>
    </div>
</div>

$('.close-div').click(function(){
   $(this).parent().parent().remove();
});
 
You can hide DIV with JS

Code:
<div id="myDiv" onClick="javascript:this.style.display='none';">
 
</div>
 
Ooo thank you guys.
I'm gonna try and i'll be back with a response :)
 
Back
Top