logo-MindMajix
PostjQueryjQuery
S
Satish santu

Posted on 28th May 2024|81 views

0
votes
Jquery Hide Not Working

Why jQuery hide() not working?

1 answers
Answers
P
Sowjanya Kodiganti

Posted on 28th May 2024| views

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