我想只讀選擇框。但是我從這個元素髮布了價值。當我禁用它時,然後選擇框不能發佈值。如何創建只讀選擇框但我會發布該值?
<select name="office_name" id="office_name" readonly>
<option value="">----Select Office----</option>
<option value="1">Bengli</option>
<option value="2">English</option>
</select>
只讀不工作,但禁用工作。 但我只需要readonly不能禁用。 可能嗎?
readonly on select option? – guradio
What's the point of a readonly select? Just put the value in a readonly textbox if the user is unable to change it. –
one option will selected and select box readonly.... –