
Valor de input en un alert
Publicado por Julio Cesar (16 intervenciones) el 06/02/2018 02:43:14
En este sencillo código quiero sacar el valor o texto de un input en un alert pero no muniona, ¿qué puedo hacer?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
var equipos;
function comenzar(){
equipos.querySelectorAll(".equipos");
alert(equipos[0].value);
}
window.addEventListener("load",comenzar,false);
</script>
</head>
<body>
<input type="text" class="equipo">
<input type="text" class="equipo">
<input type="text" class="equipo">
</body>
</html>
Valora esta pregunta


0