Using JQuery to replace multiple instances of HTML on one page
- by Kenneth B
I've made a script which copies the alt attribute of an image and puts it into a <span>. It also formulates the information divided by a hyphen. It works like a charm, but only with one image.
I would also like to wrap a <div> around the image to prevent unnecessary markup.
Script snippets:
HTML:
<div id="hoejre">
…