Perhaps more convenient to use the selector instead of a text field
<select name="bodovi">
<script type="text/javascript">
for(var i=1; i<=50; i++){
document.write('<option value="'+i+'">'+i+'</option>');
}
</script>
</select>