ใช้ CSS:ตัวเลือกอ่าน-เขียนเพื่อเลือกองค์ประกอบที่ไม่มีแอตทริบิวต์ "อ่านอย่างเดียว"
ตัวอย่าง
คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้งาน:ตัวเลือกอ่าน-เขียน
<!DOCTYPE html>
<html>
<head>
<style>
input:read-write {
background-color: blue;
color: white;
}
</style>
</head>
<body>
<form>
Subject: <input type = "text" name = "subject" value = "Java"><br>
Student: <input type = "text" name = "student" readonly value = "Amit"><br>
</form>
</body>
</html>