There are a lot of reasons why you might want to hide a portion of your web page: for example, there could be an image that you don’t want to show based on user type or an action may be available that lets the user hide a portion of the page. Hiding/showing can add dynamism to a page and jQuery makes it easy. If you look at some JavaScript examples of hiding a DIV you’ll notice that it takes quite a few lines of code to accomplish the task. New to JavaScript? Learn the Basics If you have any experience with jQuery, you’ll already know that it provides a much simpler way to accomplish the same goal. jQuery is a JavaScript library and …

See original article taken from here:

How to Hide a DIV with jQuery


Also published on Medium.