Brief analysis of readonly and enabled property of js setting control

  • 2020-03-30 01:04:55
  • OfStack

How do I set the readonly and enabled properties of a control with js?  

I've tried this no,text1 is < Input type = text  Id = text1 >    

Text1. Readonly = true;    
     
And    

Text1. Enabled = true;    

No, why??    

The answer:

Disabled = flase;         / / lowercase
ReadOnly = true;         / / the capital


Related articles: