jquery - keyup does not work at dynamic added field -


I have forms that dynamically add fields; I have another type written in an input to another Want to show in the field with a script like this in the field

  & lt; Script & gt; $ (Document) .ready (function () {$ ('# field') Keyup (function () {$ ('# target'). Html ($ (this) .val ());}) $ ( '# Field_2') Keyboard (function () {$ ('# target2') .HTML ($ (this) .val ());});}); & Lt; / Script & gt;  

As long as the first field problem occurs with all the other because the typed characters are not being shown in the label target2 .

P>

Can someone point me out how can I type in the input show already added in 2 lines?

Comments