input type text id val script type text javascript var input document

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<input type="text" id="val">
<script type="text/javascript">
var input = document.getElementById('val')
input.onblur = function(){
var val = parseFloat(input.value)
if (val < 10.0000) {
val = 10.0015
input.value = (10.0015).toString()
}
}
</script>