Answers for "formly disable field"

CSS
0

How do I disable/enable a form element?

// Disable #x
$( "#x" ).prop( "disabled", true );
 
// Enable #x
$( "#x" ).prop( "disabled", false );
Posted by: Guest on May-20-2020
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

Browse Popular Code Answers by Language