Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
JavaScript Multiple Menu Active
Virajsinh
Jan 2nd, 2020
398
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
//JavaScript Multiple Menu Active Class
var
url
=
window.
location
.
href
;
$
(
'ul.sidebar-menu a'
)
.
filter
(
function
(
)
{
return
this
.
href
==
url
;
}
)
.
parents
(
'li'
)
.
addClass
(
'active'
)
;
Add Comment
Please,
Sign In
to add comment
Public Pastes
Unreal 5.6 Skeletal Mesh Multi-Threaded Opti...
C++ | 4 min ago | 2.10 KB
Binance account XL
JavaScript | 6 min ago | 0.05 KB
EARN $900 INSTANTLY 2025 BQ
JavaScript | 22 min ago | 0.05 KB
Bypass NRO Script
Winbatch | 35 min ago | 0.14 KB
prop.nut
C++ | 38 min ago | 0.99 KB
Random Gmail Acc 2N
JavaScript | 38 min ago | 0.05 KB
Products.js
JavaScript | 47 min ago | 1.18 KB
Make $1000 15-MINUTES (BEGINNER) Z2
JavaScript | 54 min ago | 0.05 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!