Javascript operation text box readOnly

Source: Internet
Author: User

This morning I got a question about the readOnly attribute of the text box,

Specifically: use JavaScript to modify this attribute.

At the beginning, I couldn't get the value of this attribute in Javascript, so I couldn't find it on the Internet. if I did not take a closer look, I felt that I had nothing to do with what they wrote. I don't believe it, but I still cannot help it? But it cannot be :(

Finally, I carefully read one on the Internet and found that it was a problem. I didn't write it in upper case and it was all lowercase letters.

Readonly <====> readOnly

After it is changed to the latter, it is really good :)

It seems that experience is not good. The most important thing is that you have to study seriously. Your attitude determines whether you can learn something ....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.