select value check

<!DOCTYPE html>
<html>
<body>html

<p>A function is triggered when the user releases a key in the input field. The function transforms the character to upper case.</p>
Enter your name: <input type="text" id="fname" onkeyup="myFunction()">orm

<script>
function myFunction() {
    var x = document.getElementById("fname");
    x.value = x.value.toUpperCase();
}
</script>htm

</body>
</html>ip

keyup eventget

http://www.w3schools.com/jsref/event_onkeyup.aspinput

onchange eventio

function updatestatustimestamp(){
        var x = document.getElementsByName("tatus").value();    
        if(x==0){/
        }else{/      
        }   
    }event

相關文章
相關標籤/搜索