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 JSFi
According to JQuery documentation .show() "is roughly equivalent to calling .css('display', 'block'), except that the display property is restored to whatever it was initially."
Set the style explicitly instead. You could use a CSS class
.hidden{
visibility: hidden;
}
.shown{
visibility: visible;
}
and set is using
$("#yourdiv").removeClass("hidden").addClass("shown");