Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
    <input type = "text" oninput = "mostrar()" id = "caja" />
    <select onchange = "mostrar()" id = "combo">
        <option value = "">Selecciona una opción</option>
        <option value = "1">1</option>
        <option value = "2">2</option>
        <option value = "3">3</option>
    </select>
    <label id = "salida"></label>
</body>
</html>
 
function mostrar(){
    if (caja.value.length && combo.value.length){
        telefono = caja.value;
        nombre = "foo"; //Tú lo asignas
        lugar = "bar"; //Tú lo asignas
        salida.innerHTML = nombre + " — " + lugar + " — " + telefono;
    }
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
Alexis88pro
0viewers