I’m going to start putting little things that were unclear to me before I have an a-ha! moment. This blog is about my journey learning to code so some of these will almost certainly be obvious to some people, but hopefully if someone else who is learning searches for an answer finds my post, well, good for me right? And more to the point good for the person whose question is answered! So here’s the first little a-ha.
- Input fields like ‘values’
- HTML elements have ‘innerHTML’
In other words, what’s in a <div> is it’s innerHTML but what’s in a text box is its value.
I know, probably remarkably simple and obvious to some folks but hey, it was something that briefly gave me a problem and I figured out so here you go.