get input value generated dynamically by jquery

-1

Friends how could I take the input value generated dynamically by jquery, I saw examples that put div containers but it does not work, your help by facvor

    
asked by Juan Seferino 04.10.2018 в 00:01
source

2 answers

1

You can access the content of your input by means of its id, you would have to change your selector by:

$("#txtPasswordCliente").val()
    
answered by 04.10.2018 в 00:11
0

Your problem occurs when you are giving the instruction to detect the click when you load the document, as your button is dynamic when you load the document for the first time, there is no such element and therefore you can not find it.

Instead of placing the instruction inside the document ready, put it in the following way:

$(document).on("click", "#btnIniciarSesion", function(){

    #codigo de tu click

});

And platicanos if it worked.

PD. For future occasions place your code in text and not in image. As they say there "Help me to help you"

    
answered by 04.10.2018 в 01:12