Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

onchange js

<script>
document.getElementById("fname").addEventListener("change", myFunction);

function myFunction() {
  var x = document.getElementById("fname");
  x.value = x.value.toUpperCase();
}
</script>
 
PREVIOUS NEXT
Tagged: #onchange #js
ADD COMMENT
Topic
Name
3+8 =