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
Show and Hide div on single button click using jquery
Mukesh Kumar
Oct 27
2015
Code
12.8
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<!doctype html>
<html lang=
"en"
>
<head>
<meta charset=
"utf-8"
>
<title>toggle demo</title>
<script src=
"https://code.jquery.com/jquery-1.10.2.js"
></script>
</head>
<body>
<button>Toggle</button>
<div>Hello</div>
<script>
$(
"button"
).click(function()
{
$(
"div"
).toggle();
});
</script>
</body>
</html>
jquery
button
Hide div on single button click