Hello, I get the values ​​from input text like this:

 $('.input').each(function(i){ }); 

Is it possible to immediately rewrite the resulting values ​​in a div inside the each function? The number of inputs may change dynamically.

    1 answer 1

    Something like this

     $('.input').each(function(i, e){ $('#mydiv').text($(e).val()); }); 
    • rather, $ ('# mydiv'). text ($ ('# mydiv'). text () + $ (e) .val ()); - Jean-Claude