1<!DOCTYPE html>
2<html>
3 <head>
4 <title>Title of the document</title>
5 <style>
6 input[name=name] {
7 pointer-events: none;
8 }
9 </style>
10 </head>
11 <body>
12 <input type="text" name="name" value="w3docs">
13 </body>
14</html>
1<input type="text" name="username" value="admin" >
2<style type="text/css">
3 input[name=username] {
4 disabled: true; /* Does not work */
5 }
6</style>
7
1 <input type="text" name="username" value="admin" tabindex="-1" >
2
3 <style type="text/css">
4 input[name=username] {
5 pointer-events: none;
6 }
7 </style>
8
1<input type="text" name="username" value="admin" >
2
3<style type="text/css">
4input[name=username] {
5 pointer-events: none;
6 }
7</style>
8