Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
104
rated 0 times [  109] [ 5]  / answers: 1 / hits: 102180  / 13 Years ago, fri, august 26, 2011, 12:00:00

Basic jQuery question:



I am trying to reveal a div that has been marked as hidden using jQuery. But am not quite getting it



I've created a JSFiddle here: http://jsfiddle.net/VwjxJ/



Basically, I want to use style=visibility: hidden; rather than style=display: none; as I want the space of the hidden element to be maintained



Have tried using show(), fadeIn() etc but neither work (they do for style=display: none;)



what am I doing wrong?


More From » jquery

 Answers
10

If you have hidden it with visibility:hidden then you can show it with jQuery by



$(.Deposit).css('visibility', 'visible');


And in the fiddle you are missing jQuery. Here is a demo: http://jsfiddle.net/9Z6nt/20/


[#90399] Thursday, August 25, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
peytont

Total Points: 215
Total Questions: 110
Total Answers: 111

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
;