I have some code like below which changes the font of text under a certain condition. newEntryRow.find("p").find("span").css('color','red');
Now I am trying to do the same thing but change the source of an image. I tried something like
newEntryRow.find("img").css('src', "foo.png");`
How can I do this?
Use
.attrto change the attribute of an element,