Need help with this function



I need help with the following function in JS:

                    <h1>Ejercicio 12 </h1>
            <input type="text" id="Letra"><br>
            <input type="button" id="btnConfirmar" value="Confirmar"><br>
            <p id="pSalida11"></p>

var r;
function procesarEjercicio12(){


 $("#pSalida11").html("la letra " + r +  " ingresada es una vocal");



  $("#pSalida11").html("no es una vocal");


When i put one of the vocals, nothing happend, what is wrong?


you never call the function, there is no click event/listener.

functions only execute when called


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.