As you know, for the select HTML control, there is no readonly encoding,
So setting it does not work, for example:
1 < Select ID = "Select1" Readonly = "Readonly" >
2 < Option Value = "AA" > AA </ Option >
3 < Option Value = "BB" > Bb </ Option >
4 < Option Value = "Cc" > CC </ Option >
5 < Option Value = "DD" > Dd </ Option >
6 </ Select >
7
If disabled is used, the value cannot be obtained at the time of submission.
So what methods can be implemented?
---- I have not found -_-!
However, there can be a compromise method, as shown below:
1 < Select ID = "Select1" Onfocus = "This. defopt = This. selectedindex" Onchange = "This. selectedindex = This. defopt ;" >
2 < Option Value= "AA"> AA </ Option >
3 < Option Value= "BB"> Bb </ Option >
4 < OptionValue= "Cc" Selected > CC </ Option >
5 < OptionValue= "DD"> Dd </ Option >
6 </ Select >
7
That's all done.