Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

Find last visible div using jQuery

Hello Friends,

You may be stuck when you need to find the last visible element using jQuery/javascript. For finding the last visible element,look at below jQuery code.  You need to use Visible selector with last selector of jQuery. Look at below link for both selector jQuery syntax. As per below jQuery code, it will find the last visible element and fadeOut it. You can do your own operation once you get the last visible element.

$('.divclass:visible:last').fadeOut(1000);

If you find any problem in this than let me know by comment.
Share:

No Comments Yet.

Leave a Reply

Your email address will not be published.