I´m trying to structure my Firebasedata using this example from Stackoverflow: Add a list item through javascript
HTML:
First name:
<input type="text" id="firstname">
<br>
<p>Your first name is: <b id='boldStuff2'></b>
</p>
<p>Other people's names:</p>
<ol id="demo"></ol>
<input type='button' onclick='changeText2();' value='Submit' />
When I try to copy the code straight into my project for testing, I´m getting the error: Uncaught ReferenceError: changeText2 is not defined at HTMLInputElement.onclick"
Also, when I try to copy the code to a new Fiddle, it doesn't work.
Any help is much appreciated