Posted on 1st December 2023
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.
STILL GOT QUERIES?
Copyright © 2013 - 2023 MindMajix Technologies