My code looks like this
in .html
<button type="button" onclick="toggle()" id="toggleButton">more ⇓</button>
.js
function toggle(){
document.getElementById("toggleButton").innnerHTML="less ⇑";}
The button appears in my page with the more text, but clicking the button does not do anything.
In I do have reference
<script src="button.js"></script>
And the name of my javescript file is button.js