And5,
так?
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
</head>
<body>
<input value='5' name="so"></input>
<div id="id0"></div>
<script>
var group0 = document.getElementsByName('so')[0].value;
document.getElementById('id0').innerHTML = group0
</script>
</body>
</html>