has this API. What about ?
This worked for me. If field with name fieldA is clicked or any key entered it updates field with id fieldB.
jQuery("input[name='fieldA']").on("input", function() { jQuery('#fieldB').val(jQuery(this).val()); });