In this article I will show you how to set display none to html elements using Jquery. There are various ways to do this and we will discuss all of them here.
Code Example
1. Using .hide() function
$('#id').hide();
2. Using .css()
propery
$("#id").css("display", "none"); // OR $("#id").css({display: "none"});
3. Using :display
$("#id").(":display").val("none");