0

Why doesn't my code work?

I am stranded in a code with jquery. I am creating an <img> element and then giving it an attribute using attr () but it doesn't work for me. https://code.sololearn.com/WEEP1ccuEfKw/?ref=app

25th Jul 2020, 8:33 AM
Holger Edud Angulo Castillo
Holger Edud Angulo Castillo - avatar
2 Answers
+ 2
Use img.attr() instead of $("img").attr()
25th Jul 2020, 8:36 AM
Никита
Никита - avatar
0
Thank you
25th Jul 2020, 8:39 AM
Holger Edud Angulo Castillo
Holger Edud Angulo Castillo - avatar