Home  >  Article  >  Web Front-end  >  JavaScript operates text box readOnly_form special effects

JavaScript operates text box readOnly_form special effects

WBOY
WBOYOriginal
2016-05-16 19:13:291108browse

This morning I had a question about the readOnly attribute of the text box.

Specifically: Use JavaScript to modify this attribute.

At first, I couldn’t get the value of this attribute in Javascript. I have no choice but to search online. I didn’t read it carefully, but I just felt that there was no difference between what I wrote and what they wrote. I didn’t believe it, and I couldn’t figure it out? But I just couldn’t figure it out :(

Finally , after carefully looking at one on the Internet, I found that there is something wrong. I don’t have capital letters. When writing, I use all lowercase letters.

readonly readOnly

After changing to the latter, it still works It’s really good:)

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn