Answers for "disable form field with css"

CSS
0

disable form field with css

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
    <style>
      input[name=name] {
        pointer-events: none;
      }
    </style>
  </head>
  <body>
    <input type="text" name="name" value="w3docs">
  </body>
</html>
Posted by: Guest on January-18-2021
0

css disable input

<input type="text" name="username" value="admin" >
<style type="text/css">
  input[name=username] {
    disabled: true; /* Does not work */
  }
</style>
Posted by: Guest on January-18-2021
0

css disable input

<input type="text" name="username" value="admin" >

<style type="text/css">
input[name=username] {
    pointer-events: none;
 }
</style>
Posted by: Guest on January-19-2021

Code answers related to "disable form field with css"

Browse Popular Code Answers by Language