How to change the value of an HTML element using javascript?
I have this: <input type="button" value="hello">I want to change valueto javascript so that it is value="goodbye". How to do it?
Following @David's recommendations in the comments below, this is the code I tried but could not modify before posting this question:
var createBttn = document.getElementById('create');
createBttn.innerHTML = 'value="goodbye"';
+3