I'm trying to check if a div has a certain background image, and if it has the image, then the page should navigate to a url.
However, I can't get it to work, what am I doing wrong?
case key.enter:
if (letterIndex == 0 && $(this).hasClass('active')) {
$(this).prev().remove();
} else if ($('.content').css("background-image") === "url(img/screen-check.jpg)") {
// go to url
} else {
$(this).closest('li').toggleClass('active');
}
break;