.uppercase
CSS
<style type="text/css">
input[type=text] {
text-transform:uppercase;
}
</style>
JQUERY
<script type="text/javascript">
$(function () {
$("input[type=text]").keyup(function () {
$(this).val($(this).val().toUpperCase());
});
$("#Button1").click(function () {
alert($("#Text1").val());
}
);
});
</script>
//PRUEBA
<body>
<input id="Text1" type="text" />
<input id="Button1" type="button" value="button" />
</body>
REFERENCIAS
http://stackoverflow.com/questions/9587542/how-to-control-or-change-all-the-text-to-upper-case
http://devhints.wordpress.com/2006/11/01/css-make-it-all-uppercaselowercase/
No hay comentarios:
Publicar un comentario