Post

jQueryjQuery

S
Satish santu

Posted on 19th April 2024|80 views

0
votes

Jquery Hide Not Working

Why jQuery hide() not working?

Answers
P
Sowjanya Kodiganti

Posted on 19th April 2024

To resolve this you can simply add :visible just see the below example you will understand

$(Document).ready(function()

{ $( '.expand' ).click(function() 

{ if($( 'display_content' ).is(":visible"))

{ $( 'display_content' ).hide(); } 

}); });

If you are looking for the Jquery certification course, you can check out this online Jquery Training and Improve your knowledge in Jquery.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos