Make a drop down box read only
Posted on 2005-03-14
Trying to reuse a screen which contains a drop down selection box. I want to be able to make it be "Read Only". Reason why is want to use this screen for either adding or viewing only. Current code below, but you still can change the value. Any ideas?
Current code is:
<SELECT size="1" name="prepaidCollectCode">
<OPTION readOnly="true" value="">Select One</OPTION>
<OPTION readOnly="true" value='CC'
CC - Collect
<OPTION readOnly="true" value='NC'
NC - Service Freight; No Charge
<OPTION readOnly="true" value='PP'
PP - Prepaid (by Seller)