I have a script which do the following things:
-Value attribute of input field can be blank - after entering showing div with change button
-Input already has some value before the page loads - then it shows the div with change button
But the problem is that it uses replaceWith function and replaces the input - while it`s needed to submit the form.
Please help to improve the script for it just to hide input and not replace it.
Thanks in advance!