Hello @kartik,
You can use CSS:
class .hide { display: none!important; }.
For hiding/showing, I call
.addClass("hide")/.removeClass("hide").
For checking visibility, I use
.hasClass("hide").
It's a simple and clear way to check/hide/show elements, if you don't plan to use .toggle() or .animate() methods.
Hope it helps!!