The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript create html tag with javascript Reply To: create html tag with javascript


I’m not sure what it is you’re asking for here, but when using vue, I don’t think you should be creating html elements with javascript, but use the ones in your template.
So if you want to have the image being shown, then you can use <img></span> for rendering the image with the source instead of {{item.bild}}. Because the latter just outputs text. You don’t have to create an image element yourself for this, just change this in the template.