<form action="javascript: void(0);">
<input type="text" readonly value="readonly enable">
<br>
<input type="text" value="readonly disable">
<br>
<select name="" id="" readonly>
<option value="">請選擇</option>
</select>
<br>
<select name="" id="">
<option value="">請選擇</option>
</select>
<br>
<button readonly>readonly enable</button>
<br>
<button>readonly disable</button>
</form>
form [readonly] {
pointer-events: none;
background: gray;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.