Wednesday 15 January 2014

javascript - How can I keep Html element hide() without using jQuery and show using jQuery.show()? -


I want to hide my HTML information when rendering on the page. For this I have not set display: any . However, when I $. If I use the show (), then the element is not showing $ I I want to show the element using Please help!

Yes this problem is in the jQuery or browser rendering engine. If you are not using any animation, then you can very well define a class:

 . Hidden {display: none;}   

and using jQuery, you can delete the class from:

  $ (element) .hide ( ). RemoveClass ("hidden") FadeIn (); $ (Element) .toggleClass ("hidden");   

Now, when performing this execution, DOM hides, removes CSS class and then fades in!

No comments:

Post a Comment