$('#test').hide(); $('#test').show(); .test { display:none; } .test { visibility:hidden; }