0
Q:

disabled input css

input[type="text"]:disabled {
	background-color: #dddddd;
}
1
<input type="text" name="username" value="admin" >

<style type="text/css">
input[name=username] {
    pointer-events: none;
 }
</style>
0

    <form 
    action="/action_page.php">

  <label for="fname">First name:</label>
  <input type="text" id="fname" 
    name="fname"><br><br>
  <label for="lname">Last name:</label>
  
    <input type="text" id="lname" name="lname" disabled><br><br>
  
    <input type="submit" value="Submit">

    </form>
 
0

New to Communities?

Join the community