Is there a way to get the style: display attribute which would have either none or block?
DIV :
this is the correct answer
$('#theid').css('display') == 'none'
You can also use following line to find if it is display block or none
$('.deal_details').is(':visible')