how to disable edit option by clicking button using html textbox code example
Example: js remove readonly attribute
document.getElementById('myButton').onclick = function() {
document.getElementById('myInput').removeAttribute('readonly');
};
document.getElementById('myButton').onclick = function() {
document.getElementById('myInput').removeAttribute('readonly');
};