$(function(){ // this will get the full URL at the address bar var url = window.location.href; // passes on every "a" tag $("#subpages-widget-2 a").each(function() { // checks if its the same on the address bar if(url == (this.href)) { $(this).closest("li").addClass("active"); } }); });

Space118 Mega Sale of Exciting Artworks

Shivanjani Lal | New South Wales, Australia

Artist-in-Residence

Rahul Vajale | Mumbai, Maharashtra, India

Artist-in-Residence

Urvashi Singh | New Delhi, India

Artist-in-Residence

WordPress Lightbox