I am a javascript noob.
I want clicking on the images to change the text in a span
What I have so far:
Image:
<img src="image.png" onclick="document.span[0].elements['videoTitle'].value = 'My Text'" />
Span:
<span name="videoTitle"><strong>My Initial Text</strong></span>
I dont know what should follow "document." and I assume i need javascript in the header or something?
I was referencing this post: click on image and change a text
I have no idea what I'm doing here. I don't understand js, I'm a designer!