showing results for - "onchange js"
Lorenzo
05 Mar 2016
1<script>
2document.getElementById("fname").addEventListener("change", myFunction);
3
4function myFunction() {
5  var x = document.getElementById("fname");
6  x.value = x.value.toUpperCase();
7}
8</script>