Какие сложные танцы с
бубном jQuery вокруг простой задачи
<input type="text" id="textField" value="какой-то текст" /><br />
<input type="button" value="Переключить (выкл/вкл) возможность редактирования поля" onclick="doDisable()" />
<script>
function doDisable()
{
var textField = document.getElementById('textField');
textField.readOnly = ! textField.readOnly;
};
</script>