Answers for "How do I disable/enable a form element?"

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

Code answers related to "How do I disable/enable a form element?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language