Checking img src
Checking img src
Hello
I am trying to add a class to a div depended if another div has an img with a specific src
$p(document).ready(function() {
if ($("#Banner img").attr("src", "http://test.gif"))
{
$(".top").addClass("right");
};
});
What am I supposed to do?