I have an dynamicly added div that I am calling to my page via a javascript tag added to the bottom from a third party plugin. I want to check if this element has the css value display:none or block. Im having trouble accessing the elements info I think because it was rendered to the page after my script. is there a way to check for this? i tried this:
if($('.element').css('display') == 'none') {
alert("none");
} else {
alert("block");
}