<input id="aaa" readonly>
<input id="bbb" readonly>
<script>
document.getElementById("aaa").readOnly = false;
document.getElementById("bbb").readOnly = false;
</script>
<input id="bbb" readonly>
<script>
document.getElementById("aaa").readOnly = false;
document.getElementById("bbb").readOnly = false;
</script>