There is a common requirement that clicking the Edit button will focus on the text field, and move the cursor to the end of it:
const fullNameEle = document.getElementById('fullName');
const editEle = document.getElementById('edit');
editEle.addEventListener('click', function (e) {
// Focus on the full name element
fullNameEle.focus();
// Move the cursor to the end
const length = fullNameEle.value.length;
fullNameEle.setSelectionRange(length, length);
});