TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ankit Shukla
NA
681
116.8k
Explain this query
Aug 19 2015 7:44 AM
Hi,
Can anyone explain this query?
<script>
$(function() {
var pgurl = window.location.href.substr(window.location.href.lastIndexOf("/")
+1
);
$(".menu li a").each(function() {
if ($(this).attr("href") == pgurl || $(this).attr("href") == '')
$(this).addClass("active");
});
});
</script>
and why we add '1' in 3rd line (highlight with red color)?
Thanks in advance.
Reply
Answers (
4
)
Sort particular records in jquery datatable asp.net mvc.
how to add bootstrp jquery in vs2013