Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
JavaScript Multiple Menu Active
Virajsinh
Jan 2nd, 2020
334
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
Interceptor JS
JavaScript | 5 min ago | 3.15 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 12 min ago | 0.38 KB
Sigma style
LScript | 21 min ago | 0.10 KB
M1SCO Style
LScript | 24 min ago | 0.09 KB
Kiwami style
LScript | 26 min ago | 0.10 KB
Tardis - Alarm System
Lua | 42 min ago | 0.10 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
Anti Lock 67su
Lua | 1 hour ago | 2.14 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!