Set readonly value if readonly selected, otherwise delete it