I have the following CSS class
.ad-panel::after {
content: "";
display: block;
height: 0;
padding: 65.86% 0 0;
width: 100%;
}
How can I check if my .ad-panel:after class is empty? I am using the following Jquery code but it doesn't seem to work.
jQuery(document).ready( function($) {
if ($('.ad-panel').css('content','') {
alert('No content!')
}
})
Any suggestions? I figure that the syntax is wrong somewhere. Thanks