Is there a way to get the style: display attribute which would have either none or block?
DIV :
//animated show/hide function showHide(id) { var hidden= ("none" == $( "#".concat(id) ).css("display")); if(hidden){ $( "#".concat(id) ).show(1000); }else{ $("#".concat(id) ).hide(1000); } }