porque no hace lo que tiene que hacer?
Publicado por Omar Castro (1 intervención) el 28/01/2007 12:32:13
soy nuevo con javascript, y supuestamente esto hace que lo que hay en un text, lo va a poner en el otro pero como upperCase pero no lo hace, alguien me podria explicar...?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>text object value</title>
<script language="javascript">
function upperMe(){
document.convertir.salida.value = document.convertir.entrada.value.toUpperCase()
}
</script>
</head>
<body>
Enter lowercase letters for conversion to Uppercase:
<br />
<form name="convertir">
<input type="text" name="entrada" value="sample" onchange = "upperMe()" />
<br>
<input type="text" name="salida" value="" />
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>text object value</title>
<script language="javascript">
function upperMe(){
document.convertir.salida.value = document.convertir.entrada.value.toUpperCase()
}
</script>
</head>
<body>
Enter lowercase letters for conversion to Uppercase:
<br />
<form name="convertir">
<input type="text" name="entrada" value="sample" onchange = "upperMe()" />
<br>
<input type="text" name="salida" value="" />
</form>
</body>
</html>
Valora esta pregunta


0