I am trying to check if status_comment_holder
is empty and if it is then I want to change the background of comment-container
without having to refresh the page, at the moment, I am appending comments to status_comment_holder
and removing the comment when they remove their comment, I am not too sure if I can do this with css or jquery so I have marked tags for both.
<div class="well well-small comment-container" id="comment-container"">
<div class="status_comment_holder" id="image_comment"></div>
</div>
I have tried:
if($('#image_comment').is(':empty')){
alert("fhfhf");
$('.well').css('background-color', '#ffffff');
}
With no avail, it's not even alerting for some reason.