Remove block with Javascript without “hidden” css styles

I have a problem - I want to DELETE the div's rather than just hide them with css on my web page. I'm newbie in Javascript and I can not say for sure whether this is but I think that should be used function removeChild(). Here's the script:,html/

It works like this:

1) "X" button hide pronto and crossClose divs due to the fact-purpose style of "hidden" these blocks.

2) The script sets a specific value in a cookie if the value matched the block is not shown (with style = "visibility: hidden;").


Yes, you can remove the element together with its subtree with removeChild().

However, for I suggest setting style display: none. It won't display at all (won't occupy the space as visibility:hidden does).

In plain JavaScript use removeChild(): In jQuery you have method remove():

Need Your Help

How to set the map center attributes from the set of coordinates

jquery google-maps-api-3 geocoding

How to calculate the map center coordinates from the set of below coordinates dynamically. These coordinates am taking from the xml file. Based on the XML coordinates, I want to set the center

How to pass a View to a queryRun?

axapta dynamics-ax-2009 x++ rdp dynamics-ax-2012

I like to pass to "QueryRun" a View. if I put this line I have error in visual studio :

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.