我尝试将 readonly 属性设置为 true,但它不起作用,因为我仍然可以从下拉列表中选择值。
<tr>
<td>
<select name="type" tabindex="0">
<option value=""></option>
<option value="first">first</option>
<option value="second">second</option>
</select>
</td>
</tr>
Run Code Online (Sandbox Code Playgroud)