I have an Input box and I am trying to assign a value to it in JavaScript.
I have tried both the "Id" and the "Name" property but still not getting the value assigned to it.
What am I doing wrong
<input id="MyInputBox" name="MyInputBox" type="text" runat="server"/>
function callAlert() {
alert('Calling js from Content Page.');
document.getElementById("MyInputBox").value = "My value 1";
}