I am currently working on a website where I need to add content dynamically via javascript. I am working with UIKit (https://getuikit.com/docs/slider).
This is what I want to achieve:
<img src="images/photo.jpg" alt="" uk-cover>
What I Already tried:
img = document.createElement("img");
img.ukcover = "";
So how do I add the uk-cover to my img html tag? Thanks!