Jquery - How to get the style display attribute “none / block”

后端 未结 5 679
深忆病人
深忆病人 2021-01-30 04:08

Is there a way to get the style: display attribute which would have either none or block?

DIV :

5条回答
  •  抹茶落季
    2021-01-30 04:11

    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')
    

提交回复
热议问题