Алекс_, так?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<input type="text" value="first" id="but_1" />
<button>Проверить</button>
<input type="radio" name="v1" value="year" />
<input type="radio" name="v1" value="apple" />
<input type="radio" name="v1" value="first" />
<input type="radio" name="v1" value="wer" />
<input type="radio" name="v1" value="treck" />
<script>
var button = document.getElementsByTagName('button')[0],
inpElems = document.getElementsByName('v1'),
inpTxt = document.getElementById('but_1');
button.addEventListener('click', function() {
Array.prototype.forEach.call(inpElems,function(item) {
if(item.value == inpTxt.value) {
item.checked = true;
}
});
});
</script>
</body>
</html>