#Using JS function uppercase(obj){ obj.value = obj.value.toUpperCase(); } #Using CSS #id{text-transform: uppercase;}