How to copy what user types in one text field to the other?

Hi, I am using a Joomla component (Jreviews) and on the submission page, there are two input text fields.

When the user fills out the input field that has the class “ui-autocomplete-input” I would like it to copy the text they input directly to the input with the name data[Field][Listing][jr_testfield]

I have tried some javascript/jquery codes with no success. Anyone have any ideas? Here is the code:


<input class="acInstructions jrAutoSuggest ui-autocomplete-input" type="text" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"></input>

<input class="jr_testfield jrText" type="text" data-click2add="0" name="data[Field][Listing][jr_testfield]"></input>

Thanks for your help!