arguiot/DisplayJS

How to change the src of an img?

Hedronmx opened this issue · 1 comments

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/");

Simply do:

$.single("#dummyimage").setAttribute("src", "http://dummyimage.com/250x155/")