Hi, why is my #div not hiding when it's clicked, maybe placing it within a document.ready function wasn't needed ?
Siberian
13
Junior Poster
Recommended Answers
Jump to PostTry this:
<!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> <script> $((function(){ $("#tags_hide").hide(); })); </script> </head> <body> <div id="tags_hide">If you click on the "Hide" button, I will disappear.</div> <button id="hide">Hide</button> <button …
Jump to PostPlease provide your sample jQuery code.
Jump to PostOh, sorry... The jQuery code needed a minor change. The jsfiddle configuration also did not have the jQuery library loaded.
updated: http://jsfiddle.net/Lcx78/1/
Jump to PostTake a look at this example.
When working with anchor
<a/>
elements, keep in mind that they have a default behaviour which is to load some information. You need to prevent that …
All 14 Replies
jj.dcruz
0
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Siberian
13
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Siberian
13
Junior Poster
Siberian
13
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Siberian
13
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Siberian
13
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Siberian
13
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Siberian
13
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.