Home >Web Front-end >JS Tutorial >JavaScript operates text box readOnly_form special effects
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....