JSFiddle - React, Tailwind, and code Playground
HTML
<img style="display: none;" src="../img/arnodfld.png" alt="Arnold">
<input name="user">
JavaScript
$("input:text").val($('img').attr('src'));
<img style="display: none;" src="../img/arnodfld.png" alt="Arnold">
<input name="user">
$("input:text").val($('img').attr('src'));