Here’s my code, why won’t it fill the input text box?
<html>
<head>
<script>
function textFill() {
document.getElementById("textbox").value("Test Here");
}
</script>
</head>
<body>
<input type="text" id="textbox" />
<button type="button" onclick="textFill()">Fill Text</button>
</body>
</html>
You are doing it slightly wrong.
See this jsFiddle: http://jsfiddle.net/9wTps/