I am faced with a situation where I need to change the font color of text under a specific condition using code like this:
newEntryRow.find("p").find("span").css('color','red');
Now, my goal is to achieve something similar but by changing the source of an image. My attempt so far has been:
newEntryRow.find("img").css('src', "foo.png"
);`
Is there a way to accomplish this task effectively?