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
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to Collapse Accordian in Bootstrap when Mouse is Clicked Anywhere on Page using JQuery
Abhijeet Singh
Jan 28
2015
Code
1.7
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
$(document).click(
function
() {
if
($(
'.panel-collapse'
).hasClass(
'in'
))
$(
'.in'
).addClass(
'collapse'
).removeClass(
'in'
);
});
Collapse
accordian
bootstrap