convert string to uppercase while typing

CSS
#Using JS
function uppercase(obj){
    obj.value = obj.value.toUpperCase();
}

#Using CSS
#id{text-transform: uppercase;}
Source

Also in CSS: