SyntaxFix
Write A Post
Hire A Developer
Questions
.show() and .hide() modify the css display rule. I think you want:
$(selector).css('visibility', 'hidden'); // Hide element $(selector).css('visibility', 'visible'); // Show element