Home >Web Front-end >JS Tutorial >How to operate custom properties of web controls through javascript_javascript skills

How to operate custom properties of web controls through javascript_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:12:411145browse

When programming, you sometimes use custom properties of web server controls. For example, there is no IsNotNull property in the TextBox control, but we can add an IsNotNull property ourselves to use it as a mark to facilitate our programming.

Although the IDE will prompt a warning message "IsNotNull is not a property of TextBox", it does not prevent us from using it!

Code:


Write Javascript code:

Copy code The code is as follows:


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