I am new to javascript and I am having trouble changing the value of an html element. Here is the HTML element:
<input type="button" id="button1" onclick="click('button1')"/>
Here is my javascript function
function click(){
document.getElementById("button1").value = "X";
}
I would be grateful for any help.