I have a number of field names that take the following format: 'Field1_ro', 'Field2_ro', 'Field3_ro'...
Is there a way I can set all fields that contain 'ro' to read only instead of using the following line everytime?
document.getElementById('Field1_ro').readOnly = true;
document.getElementById('Field2_ro').readOnly = true;
document.getElementById('Field3_ro').readOnly = true;