How to change the src of an img?
Hedronmx opened this issue · 1 comments
Hedronmx commented
I am stuck on that, not sure how to change the src to the value of a variable.
Something like this $("#dummyimage").attr("src","http://dummyimage.com/250x155/");
arguiot commented
Simply do:
$.single("#dummyimage").setAttribute("src", "http://dummyimage.com/250x155/")