Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Show and Hide div on single button click using jquery
WhatsApp
Mukesh Kumar
Oct 27
2015
12.9
k
0
1
<!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
Up Next
Show and Hide div on single button click using jquery